<script setup lang="ts">
import { computed } from 'vue'
import PageMasterDetailBMaintenance from '@/components/pages/PageMasterDetailBMaintenance.vue'
import type { MaintenancePageModel } from '@/models/page'
import { useStudentStore } from '@/stores/students'

const studentStore = useStudentStore()
const pageModel = computed<MaintenancePageModel>(() => ({
  type: 'maintenance',
  title: '主從資料維護示範B',
  records: studentStore.students,
  loading: false,
  error: null,
}))
</script>

<template>
  <PageMasterDetailBMaintenance :page="pageModel" />
</template>
