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

export default function Loading() {
  return (
    <div className="flex h-full flex-col space-y-8 p-8">
      <div className="flex flex-col justify-between space-y-4 md:flex-row md:items-center md:space-y-0">
        <div className="space-y-2">
          <Skeleton className="h-7 w-[200px]" />
          <Skeleton className="h-4 w-[420px]" />
        </div>
        <Skeleton className="h-9 w-[140px]" />
      </div>

      <div className="space-y-4">
        <Skeleton className="h-10 w-full" />
        <div className="rounded-md border bg-card">
          <div className="p-4">
            <Skeleton className="h-8 w-full" />
          </div>
          <div className="space-y-2 p-4 pt-0">
            {Array.from({ length: 6 }).map((_, idx) => (
              <Skeleton key={idx} className="h-10 w-full" />
            ))}
          </div>
        </div>
      </div>
    </div>
  )
}
