alert component

This commit is contained in:
mohadeseh safari committed 2025-04-11 13:31:37 -04:00
1 parent bb3b06a459
commit 77be1fc37f
1 file changed
+1 -9
+1 -9
View File
@@ -29,20 +29,12 @@ const icons = {
* @returns {JSX.Element}
*/
const Alert = ({
variant,
title,
body,
isToast,
hasIcon = true,
onClick,
}) => {
const Alert = ({ variant, title, body, isToast, hasIcon = true, onClick }) => {
const theme = useTheme();
/* TODO
Do we need other variants for alert?
*/
// Use custom colors if provided, otherwise use theme colors
const text = theme.palette.secondary.contrastText;
const border = theme.palette.alert.contrastText;
const bg = theme.palette.alert.main;