parent
b9a4208336
commit
a62525018c
@ -0,0 +1,31 @@ |
||||
<script setup> |
||||
import { useCidReqStore } from "../../store/cidReq" |
||||
import { storeToRefs } from "pinia" |
||||
import StudentViewButton from "../StudentViewButton.vue" |
||||
|
||||
defineProps({ |
||||
title: { |
||||
type: String, |
||||
required: true |
||||
} |
||||
}) |
||||
|
||||
const cidReqStore = useCidReqStore() |
||||
|
||||
const { course } = storeToRefs(cidReqStore) |
||||
</script> |
||||
|
||||
<template> |
||||
<div class="section-header section-header--h2"> |
||||
<h2 |
||||
class="section-header__title" |
||||
v-text="title" |
||||
/> |
||||
|
||||
<StudentViewButton |
||||
v-if="course" |
||||
/> |
||||
|
||||
<slot /> |
||||
</div> |
||||
</template> |
||||
Loading…
Reference in new issue