import { IconAlertCircle as AlertCircle, IconCheck as Check, IconInfoCircle as Info } from '@tabler/icons-react' import type { Notice } from '@/shared/lib' export function Alert({ notice }: { notice?: Notice }) { if (!notice) return null const Icon = notice.kind === 'error' ? AlertCircle : notice.kind === 'success' ? Check : Info return (

{notice.text}

) }