MCPcopy
hub / github.com/ZHO-ZHO-ZHO/Nano-Bananary / ErrorMessage

Function ErrorMessage

components/ErrorMessage.tsx:8–16  ·  view source on GitHub ↗
({ message })

Source from the content-addressed store, hash-verified

6}
7
8const 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
18export default ErrorMessage;

Callers

nothing calls this directly

Calls 2

useTranslationFunction · 0.90
tFunction · 0.85

Tested by

no test coverage detected