import { Skeleton } from "@/shared/components/ui/skeleton"

/**
 * teacher 段根级 Suspense fallback。
 *
 * 该目录无 page.tsx,本 loading.tsx 作为 teacher 段下所有子路由 page 加载时的
 * 默认 Suspense fallback,避免白屏。
 */
export default function TeacherLoading() {
  return (
    <div className="flex h-full flex-col space-y-6 p-6">
      <div className="space-y-2">
        <Skeleton className="h-8 w-48" />
        <Skeleton className="h-4 w-72" />
      </div>
      <div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
        {Array.from({ length: 6 }).map((_, i) => (
          <Skeleton key={i} className="h-32 w-full rounded-lg" />
        ))}
      </div>
      <Skeleton className="h-64 w-full rounded-lg" />
    </div>
  )
}
