// AlertBox.tsx import { FC } from 'react' import { Box } from '@/design-system/components/Box' import { Icon } from '@/design-system/components/Icon' import { Row } from '@/design-system/components/Row' import { Text } from '@/design-system/components/Text' import { IconNames } from '@/types' type AlertStatus = 'info' | 'warning' | 'success' | 'error' interface AlertProps { status?: AlertStatus title?: string description?: string children?: React.ReactNode } const statusToIcon: Record = { info: 'information-line', warning: 'alert-fill', success: 'checkbox-circle-fill', error: 'error-warning-fill', } const statusToColor = { info: 'utility.brand', warning: 'utility.warning', success: 'utility.success', error: 'utility.error', } as const export const AlertBox: FC = ({ status = 'info', title, description, children }) => { return ( {title && ( {title} )} {description && ( {description} )} {children} ) }