import { cn } from "@/lib/utils"; const colorStyles: Record = { green: { bg: "bg-green-500", shadow: "0 0 8px rgba(34, 197, 94, 0.5)" }, red: { bg: "bg-red-500", shadow: "0 0 8px rgba(239, 68, 68, 0.5)" }, amber: { bg: "bg-amber-500", shadow: "0 0 8px rgba(245, 158, 11, 0.5)" }, blue: { bg: "bg-blue-500", shadow: "0 0 8px rgba(59, 130, 246, 0.5)" }, purple: { bg: "bg-purple-500", shadow: "0 0 8px rgba(139, 92, 246, 0.5)" }, }; interface StatusBadgeProps { color: "green" | "red" | "amber" | "blue" | "purple"; label?: string; } export function StatusBadge({ color, label }: StatusBadgeProps) { const style = colorStyles[color] ?? { bg: "bg-gray-500", shadow: "none" }; return ( {label && {label}} ); }