You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							41 lines
						
					
					
						
							735 B
						
					
					
				
			
		
		
	
	
							41 lines
						
					
					
						
							735 B
						
					
					
				<script setup>
 | 
						|
import { useCidReqStore } from "../../store/cidReq"
 | 
						|
import { storeToRefs } from "pinia"
 | 
						|
import StudentViewButton from "../StudentViewButton.vue"
 | 
						|
 | 
						|
defineProps({
 | 
						|
  title: {
 | 
						|
    type: String,
 | 
						|
    required: true,
 | 
						|
  },
 | 
						|
  size: {
 | 
						|
    type: String,
 | 
						|
    required: false,
 | 
						|
    default: "2",
 | 
						|
  },
 | 
						|
})
 | 
						|
 | 
						|
const cidReqStore = useCidReqStore()
 | 
						|
 | 
						|
const { course } = storeToRefs(cidReqStore)
 | 
						|
</script>
 | 
						|
 | 
						|
<template>
 | 
						|
  <div
 | 
						|
    :class="`section-header--h${size}`"
 | 
						|
    class="section-header"
 | 
						|
  >
 | 
						|
    <component
 | 
						|
      :is="`h${size}`"
 | 
						|
      class="section-header__title"
 | 
						|
    >
 | 
						|
      {{ title }}
 | 
						|
    </component>
 | 
						|
 | 
						|
    <div class="section-header__actions">
 | 
						|
      <StudentViewButton v-if="course" />
 | 
						|
 | 
						|
      <slot />
 | 
						|
    </div>
 | 
						|
  </div>
 | 
						|
</template>
 | 
						|
 |