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

/**
 * teacher/homework/submissions/[submissionId]/scan-grading/loading.tsx
 * 阅卷式批改页骨架屏：标题 + 左侧题目 + 右侧扫描图区域骨架。
 */
export default function Loading() {
  return (
    <div className="flex h-full flex-col space-y-4 p-6">
      <div className="space-y-2">
        <Skeleton className="h-7 w-64" />
        <Skeleton className="h-4 w-80" />
      </div>
      <div className="grid h-[calc(100vh-12rem)] grid-cols-1 gap-6 lg:grid-cols-2">
        <div className="space-y-4">
          {Array.from({ length: 3 }).map((_, i) => (
            <Skeleton key={i} className="h-40 w-full" />
          ))}
        </div>
        <Skeleton className="h-full w-full" />
      </div>
    </div>
  )
}
