import { type ReactNode } from 'react'; import { cx } from '../utils'; type CalloutVariant = 'info' | 'success' | 'warning' | 'danger'; export const Callout = ({ variant = 'info', icon, children, }: { variant?: CalloutVariant; icon?: ReactNode; children: ReactNode; }) => (
{icon && {icon}}
{children}
);