import type { SiteCardConfig } from "@/data/site/siteConfig"; interface SiteCardProps { config: SiteCardConfig; selected: boolean; onSelect: () => void; variant?: "default" | "situation"; } export function SiteCard({ config, selected, onSelect, variant = "default", }: SiteCardProps): React.JSX.Element { const { label, imagePath, disabled } = config; const isSituation = variant === "situation"; const getBackground = (): string => { if (imagePath) return `url(${imagePath}) center/cover`; if (disabled) return "rgba(255, 255, 255, 0.42)"; return "#b8b8b8"; }; const textColor = disabled ? "rgba(77, 77, 77, 0.72)" : "#4d4d4d"; return ( ); }