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

/**
 * teacher/homework/submissions/loading.tsx
 * 提交列表骨架屏（教师视图）：标题 + 表格行骨架。
 */
export default function Loading() {
  return (
    <div className="flex h-full flex-col space-y-8 p-8">
      <div className="space-y-2">
        <Skeleton className="h-8 w-48" />
        <Skeleton className="h-4 w-72" />
      </div>
      <div className="rounded-md border bg-card">
        <div className="p-4 space-y-3">
          <Skeleton className="h-10 w-full" />
          {Array.from({ length: 8 }).map((_, i) => (
            <Skeleton key={i} className="h-12 w-full" />
          ))}
        </div>
      </div>
    </div>
  )
}
