<template>
    <view class="p-30">
        <college-brochure-list :list="list"/>
    </view>
</template>

<script setup lang="ts">
import {UNIVERSITY_DETAIL} from "@/types/injectionSymbols";
import {UniversityDetail} from "@/types/university";
import {EnumBrochureType} from "@/common/enum";
import CollegeBrochureList from "@/pagesOther/pages/university/detail/components/plus/college-brochure-list.vue";

const detail = inject(UNIVERSITY_DETAIL) || ref({} as UniversityDetail)
const brochures = computed(() => detail.value.enrollBrochures || [])
const list = computed(() => brochures.value.filter(b => b.type == EnumBrochureType.ENROLL_RULE))
</script>

<style scoped>

</style>