// Ported from motion-anything (nexu-io, Apache-2.0), "Loading Shimmer" recipe. import { cn } from "@/lib/utils"; export interface SkeletonProps { /** Sweeps a soft highlight across the block. Defaults to true; set false for a flat static base color. */ shimmer?: boolean; className?: string; } // A skeleton block: a muted base color with an optional CSS-only sweeping // highlight. Size, radius and shape all come from className — this component // only owns the fill and the sweep. export function Skeleton({ shimmer = true, className }: SkeletonProps) { return ( <> {shimmer && ( )}