({ message })
| 6 | } |
| 7 | |
| 8 | const ErrorMessage: React.FC<ErrorMessageProps> = ({ message }) => { |
| 9 | const { t } = useTranslation(); |
| 10 | return ( |
| 11 | <div className="w-full max-w-lg p-4 bg-[var(--bg-error)] border border-[var(--border-error)] text-[var(--text-error)] rounded-lg text-center" role="alert"> |
| 12 | <p className="font-bold">{t('error.title')}</p> |
| 13 | <p className="text-sm">{message}</p> |
| 14 | </div> |
| 15 | ); |
| 16 | }; |
| 17 | |
| 18 | export default ErrorMessage; |
nothing calls this directly
no test coverage detected