import { cn } from '@/lib/utils'; import type { ReactNode } from 'react'; type Dot = 'ok' | 'off' | 'pending'; type Item = { label: string; value: ReactNode; dot?: Dot }; const DOT_CLASS: Record = { ok: 'bg-[var(--accent)]', off: 'bg-[var(--text-faint)]', pending: 'bg-[var(--warning)]', }; export function StatStrip({ items, className }: { items: Item[]; className?: string }) { return (
{items.map((item) => (
{item.label}
{item.dot &&
))}
); }