import Stack from "@mui/material/Stack"; import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; import { useTheme, alpha } from "@mui/material/styles"; import { LAYOUT } from "@/Utils/Theme/constants"; import { typographyLevels } from "@/Utils/Theme/Palette"; export const Severities = ["info", "warning", "error"] as const; export type Severity = (typeof Severities)[number]; const SEVERITY_GLYPH: Record = { info: "ⓘ", warning: "⚠", error: "✕", }; interface NoticeBannerProps { severity?: Severity; children: React.ReactNode; } export const NoticeBanner = ({ severity = "info", children }: NoticeBannerProps) => { const theme = useTheme(); const tone = theme.palette[severity].main; return ( {SEVERITY_GLYPH[severity]} {children} ); };