import type { FacilityStatus } from "@dci/core"; import { STATUS_LABEL, STATUS_TONE, statusVar, type StatusTone } from "@/lib/labels"; import { cn } from "./cn"; export interface StatusDotProps { status: FacilityStatus | StatusTone; size?: number; className?: string; /** hollow ring (imprecise location / rumored) */ hollow?: boolean; title?: string; } /** Dot colored by status tone; rumored is dotted, hollow renders as a ring. */ export function StatusDot({ status, size = 8, className, hollow, title }: StatusDotProps) { const tone: StatusTone = (status in STATUS_TONE ? STATUS_TONE[status as FacilityStatus] : status) as StatusTone; const color = statusVar(tone); const dotted = tone === "rumored"; const ring = hollow || dotted; return ( ); }