mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-03 22:08:50 -04:00
added udels editor and header
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user