import { Alert } from "@mui/joy"; interface MyAlertProps { type: "success" | "warning" | "danger" | "neutral" | "primary"; header: string; text: string; } export const MyAlert = (props: MyAlertProps) => { return ( {props.header}
{props.text}
); };