import { cn } from "@/lib/utils"

/**
 * Loading placeholder.
 *
 * Uses `bg-muted` rather than shadcn's default `bg-accent`. In this project
 * `accent` carries the brand tint (it is the menu/hover surface), so an
 * accent-backed skeleton rendered visibly green — most obviously in dark mode,
 * where a table of loading rows looked like a table of green pills. `muted` is
 * the neutral surface and is what a placeholder should be.
 */
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="skeleton"
      className={cn("bg-muted animate-pulse rounded-md", className)}
      {...props}
    />
  )
}

export { Skeleton }
