/* * SPDX-FileCopyrightText: 2026 Coffey Labs * * SPDX-License-Identifier: AGPL-3.0-only */ import { AlertTriangle, CheckCircle2, CircleDashed, Loader2, XCircle } from 'lucide-react'; import { cn } from '@/lib/utils'; import type { LiveState } from './liveCheck'; /** One record's state in public DNS, as an icon. */ export function StateIcon({ state }: { state?: LiveState }) { switch (state) { case 'live': return ; case 'different': return ; case 'error': return ; case 'missing': return ; default: return ; } } /** How many of the records are live, as a ring that fills. */ export function ProgressRing({ pct, done }: { pct: number; done: boolean }) { const r = 30; const c = 2 * Math.PI * r; return ( {pct}% ); }