"use client"; import * as React from "react"; import { Skeleton } from "@/components/ui/skeleton"; export interface StateLoadingProps { title?: string; description?: string; rows?: number; } export function StateLoading({ title = "Loading", description = "Fetching the latest data.", rows = 3, }: StateLoadingProps) { const skeletonRows = Array.from({ length: Math.max(1, rows) }, (_, index) => index); return (

{title}

{description}

{skeletonRows.map((row) => ( ))}
); }