<template>
  <h2>Shared Order</h2>
  <p>Loading the shared order into the app...</p>
</template>

<script setup>
import {loadShareUrl} from "@/share.js";
import router from "@/router/index.js";
import {socket} from "@/socket.js";
import {useRoute} from "vue-router";

const route = useRoute()
const code = route.params.code
loadShareUrl(code).then(()=> router.replace('/order')).catch((e)=> {console.error(e); router.replace('/order')})
</script>

<style scoped lang="scss">

</style>
