// 课程计划列表页面(家长查看子女课程计划) // 依据:02-architecture-design.md §3.1 路由结构 // 路由:/parent/course-plans "use client"; import { useChildCoursePlans } from "@/hooks/useChildCoursePlans"; import { useChildSwitcher } from "@/hooks/useChildSwitcher"; import { CoursePlanList } from "@/components/CoursePlanList"; export default function CoursePlansPage(): JSX.Element { const { currentChild } = useChildSwitcher(); const { coursePlans, loading, error } = useChildCoursePlans(); if (loading) { return (
); } if (error) { return (
加载失败:{error.message}
); } return (

{currentChild?.name}的课程计划

); }