"use client"; import { cn } from "@/lib/utils"; interface LoadingSkeletonProps { count?: number; height?: string; width?: string; columns?: number; className?: string; } export function LoadingSkeleton({ count = 4, height = "h-24", width, columns, className, }: LoadingSkeletonProps) { const items = Array.from({ length: count }, (_, i) => (
)); if (columns) { return (
{items}
); } return
{items}
; }