<template>
  <product-pageAttended-course v-if="paidCourse" />
  <product-pageCourse-detail :slug="data.data" v-else/>
</template>

<script setup>
const route = useRoute();
const data = await useFetch("/api/productId", {
    method: "POST",
      body: {
        id: route.params.product,
      },
  })
const paidCourse = useState('paidStatus', () => false)


</script>