Skip to content
Snippets Groups Projects
Commit d3abb226 authored by Niklas Schrötler's avatar Niklas Schrötler
Browse files

Implemented error fallback panel

parent d961bd3d
Branches
No related tags found
No related merge requests found
import React from 'react';
import PanelWrapper from "../meta/PanelWrapper";
const ErrorPanel = (props: {message?: string}) => {
const message = props.message ?? "Failed to render Panel";
return (
<PanelWrapper className={"bg-red-500 px-4 py-3 flex items-center justify-center"}>
{message}
</PanelWrapper>
);
};
export default ErrorPanel;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment