import type { ReactNode } from 'react' export type AlertTone = 'error' | 'success' | 'info' const toneClasses: Record = { error: 'alert alert-error', success: 'alert alert-success', info: 'alert alert-info', } export interface AlertProps { tone?: AlertTone children: ReactNode } /** Inline form-level feedback banner. */ export function Alert({ tone = 'error', children }: AlertProps) { return (

{children}

) }