import type { ReactNode } from 'react'; import { cn, type Accent } from '@/lib/cn'; interface AlertProps { accent: Accent; children: ReactNode; className?: string; /** Optional ARIA role override; defaults to "alert" for errors. */ role?: string; } const ACCENT_FILL: Record = { red: 'accent-fill-red', orange: 'accent-fill-orange', yellow: 'accent-fill-yellow', green: 'accent-fill-green', cyan: 'accent-fill-cyan', blue: 'accent-fill-blue', purple: 'accent-fill-purple', pink: 'accent-fill-pink', rose: 'accent-fill-rose', teal: 'accent-fill-teal', }; export function Alert({ accent, children, className, role }: AlertProps) { return (
{children}
); }