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

/**
 * teacher/homework/submissions/[submissionId]/loading.tsx
 * 批改页骨架屏：标题 + 题目卡片骨架 + 右侧汇总卡片骨架。
 */
export default function Loading() {
  return (
    <div className="flex h-full flex-col space-y-4 p-6">
      <div className="flex items-center justify-between">
        <div className="space-y-2">
          <Skeleton className="h-7 w-64" />
          <Skeleton className="h-4 w-96" />
        </div>
        <Skeleton className="h-9 w-32" />
      </div>
      <div className="grid h-[calc(100vh-12rem)] grid-cols-1 gap-6 lg:grid-cols-12">
        <div className="lg:col-span-9 space-y-4">
          {Array.from({ length: 3 }).map((_, i) => (
            <Skeleton key={i} className="h-40 w-full" />
          ))}
        </div>
        <div className="lg:col-span-3 space-y-4">
          <Skeleton className="h-32 w-full" />
          <Skeleton className="h-24 w-full" />
        </div>
      </div>
    </div>
  )
}
