mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-13 06:38:31 +00:00
9 lines
285 B
JavaScript
9 lines
285 B
JavaScript
// type Props = { error: Error | null };
|
|
export default function UserFacingErrorMessage(Props) {
|
|
const { error } = Props;
|
|
if (error == null) {
|
|
return;
|
|
}
|
|
return <div className="text-red-500 p-4 bg-lineHighlight animate-pulse">{error.message || 'Unknown Error :-/'}</div>;
|
|
}
|