diff --git a/src/components/ErrorMessage.tsx b/src/components/ErrorMessage.tsx index c8ff6b67..21cd0d8c 100644 --- a/src/components/ErrorMessage.tsx +++ b/src/components/ErrorMessage.tsx @@ -1,4 +1,4 @@ -import Alert from "@mui/material/Alert"; +import Alert, { AlertProps } from "@mui/material/Alert"; import AlertTitle from "@mui/material/AlertTitle"; import Box from "@mui/material/Box"; import React from "react"; @@ -6,11 +6,15 @@ import React from "react"; export type ErrorMessageProps = { reason?: string; instruction?: string; + variant?: "default" | "transparent"; + alertProps?: AlertProps; }; export const ErrorMessage = ({ reason, instruction, + variant, + alertProps, }: ErrorMessageProps): JSX.Element => { return ( - - Error + + {variant !== "transparent" ? Error : null} {reason ?
{reason}
: null} {instruction ? (