import { cn } from "@/shared/utils";
import { Skeleton } from "@/components/atoms";

interface LoadingCardProps {
  className?: string;
}

/**
 * Generic loading skeleton for card-like content.
 * Shows a header with avatar and two lines, plus body text lines.
 */
export function LoadingCard({ className }: LoadingCardProps) {
  return (
    <div
      className={cn(
        "bg-card text-card-foreground border border-border rounded-2xl p-6 shadow-md",
        className
      )}
    >
      <div className="space-y-4">
        <div className="flex items-center space-x-3">
          <Skeleton className="h-8 w-8 rounded-full" />
          <div className="space-y-2 flex-1">
            <Skeleton className="h-4 w-1/3" />
            <Skeleton className="h-3 w-1/2" />
          </div>
        </div>
        <div className="space-y-2">
          <Skeleton className="h-3 w-full" />
          <Skeleton className="h-3 w-4/5" />
          <Skeleton className="h-3 w-3/5" />
        </div>
      </div>
    </div>
  );
}
