import React from 'react' export type CalloutVariant = 'info' | 'warning' | 'error' | 'tip' export interface CalloutProps { variant?: CalloutVariant children: React.ReactNode className?: string } const config: Record = { info: { wrapper: 'bg-teal-50 border-teal-200 text-teal-700', iconColor: 'text-teal-500', icon: 'info' }, warning: { wrapper: 'bg-amber-50 border-amber-200 text-amber-700', iconColor: 'text-amber-500', icon: 'warning' }, error: { wrapper: 'bg-red-50 border-red-200 text-red-700', iconColor: 'text-red-500', icon: 'error' }, tip: { wrapper: 'bg-blue-50 border-blue-200 text-blue-700', iconColor: 'text-blue-500', icon: 'lightbulb'}, } export const Callout: React.FC = ({ variant = 'info', children, className = '' }) => { const { wrapper, icon, iconColor } = config[variant] return (
{icon} {children}
) }