UNPKG

@etsoo/materialui

Version:

TypeScript Material-UI Implementation

17 lines (16 loc) 485 B
import { jsx as _jsx } from "react/jsx-runtime"; import Alert from "@mui/material/Alert"; import { useAppContext } from "./app/ReactApp"; /** * Error alert component * @param props Props * @returns Component */ export function ErrorAlert(props) { // Global app const app = useAppContext(); // Destruct const { message = app?.get("idError"), ...alertProps } = props; // Layout return (_jsx(Alert, { severity: "error", ...alertProps, children: message })); }