;
// icon: VNode;
severity?: "info" | "warning" | "success" | "error";
children: ComponentChildren;
icon?: boolean;
}
const getColor = theme.palette.mode === "light" ? darken : lighten;
const getBackgroundColor = theme.palette.mode === "light" ? lighten : darken;
function Icon({ svg }: { svg: VNode }): VNode {
return (
);
}
function Action({ children }: { children: ComponentChildren }): VNode {
return (
{children}
);
}
function Message({
title,
children,
}: {
title?: string;
children: ComponentChildren;
}): VNode {
return (
{title && (
{title}
)}
{children}
);
}
export function Alert({
variant = "standard",
severity = "success",
title,
children,
icon,
onClose,
...rest
}: Props): VNode {
return (
{icon != false ? : null}
{children}
{onClose && (
)}
);
}