23 lines
720 B
Vue
23 lines
720 B
Vue
<script setup lang="ts">
|
|
import { useCockpitStore } from "@/stores/cockpit";
|
|
import { useCurrentCourseSession } from "@/composables";
|
|
import CockpitExpertPage from "./CockpitExpertPage.vue";
|
|
import CockpitMentorPage from "./CockpitMentorPage.vue";
|
|
|
|
const cockpitStore = useCockpitStore();
|
|
const courseSession = useCurrentCourseSession();
|
|
</script>
|
|
|
|
<template>
|
|
<div class="bg-gray-200">
|
|
<template v-if="cockpitStore.hasExpertCockpitType">
|
|
<CockpitExpertPage :course-slug="courseSession.course.slug" />
|
|
</template>
|
|
<template v-else-if="cockpitStore.hasMentorCockpitType">
|
|
<CockpitMentorPage :course-slug="courseSession.course.slug" />
|
|
</template>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped></style>
|