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

// /sonuc senkron SQLite sorgularıyla açılır; yavaş bağlantıda beyaz ekran
// yerine sayfanın iskeletini göster.
export default function SonucLoading() {
  return (
    <main className="mx-auto w-full max-w-6xl px-4 py-10">
      <Skeleton className="h-6 w-40 rounded-full" />
      <Skeleton className="mt-4 h-9 w-3/4 max-w-xl" />
      <Skeleton className="mt-3 h-5 w-2/3 max-w-lg" />
      <Skeleton className="mt-8 h-36 w-full rounded-2xl" />
      <div className="mt-8 flex flex-col gap-2">
        {Array.from({ length: 8 }).map((_, i) => (
          <Skeleton key={i} className="h-14 w-full rounded-xl" />
        ))}
      </div>
    </main>
  );
}
