import { AlertCircle, AlertOctagon, AlertTriangle, Lightbulb, LucideIcon, } from 'lucide-react'; import { cn } from '@/lib/utils'; type CalloutProps = { type: 'update' | 'note' | 'warning' | 'important'; children: React.ReactNode; }; const Icons: Record = { note: AlertCircle, warning: AlertTriangle, update: Lightbulb, important: AlertOctagon, }; export const Callout = ({ type, children }: CalloutProps) => { const Icon = Icons[type]; return (
{type.charAt(0).toUpperCase()} {type.slice(1)}
{children}
); };