import type { ReactNode } from 'react'; import Icon from '@/components/site/icon'; import { cn } from '@/lib/utils'; const tones = { neutral: 'border-outline-variant/60 bg-surface-container-high text-on-surface-variant', brand: 'border-primary/40 bg-primary-container/10 text-primary dark:bg-primary-container/25 dark:text-highlight', } as const; type PillProps = { tone?: keyof typeof tones; icon?: string; /** Show a pulsing status dot instead of an icon. */ pulse?: boolean; className?: string; children: ReactNode; }; export default function Pill({ tone = 'neutral', icon, pulse = false, className, children, }: PillProps) { return (