Files
Teamup/client/src/components/StatusDot.tsx
T

18 lines
484 B
TypeScript
Raw Normal View History

2026-06-09 15:15:35 +03:30
import { cn } from '@/lib/utils'
const TONES = {
human: 'bg-seat-human',
open: 'bg-seat-open',
ai: 'bg-seat-ai',
approved: 'bg-approved',
held: 'bg-held',
destructive: 'bg-destructive',
idle: 'bg-muted-foreground/40',
} as const
export type DotTone = keyof typeof TONES
export function StatusDot({ tone, className }: { tone: DotTone; className?: string }) {
return <span className={cn('inline-block size-2.5 rounded-full', TONES[tone], className)} aria-hidden />
}