import { cn } from "~/utils/cn"; type CustomColor = { background: string; foreground: string; }; export function Spinner({ className, color = "blue", }: { className?: string; color?: "blue" | "white" | "muted" | "dark" | CustomColor; }) { const colors = { blue: { background: "rgba(59, 130, 246, 0.4)", foreground: "rgba(59, 130, 246)", }, white: { background: "rgba(255, 255, 255, 0.4)", foreground: "rgba(255, 255, 255)", }, muted: { background: "#1C2433", foreground: "#3C4B62", }, dark: { background: "rgba(18, 19, 23, 0.35)", foreground: "#1A1B1F", }, }; const currentColor = typeof color === "string" ? colors[color] : color; return ( ); } export function ButtonSpinner() { return ( ); } export function SpinnerWhite({ className }: { className?: string }) { return ; }