I tried including a Info Icon from mui in md toast, but it didn't work. This is what I tried:
import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
toast("Information Toast", {
icon: <InfoOutlinedIcon />,
autoClose: false,
});
And it throws me an error for not being able to read properties of undefined. I saw that you can include it inside the message, but if I write a longer message it no longer aligns with the icon. That's why I wanted to try it this way.
Does someone know another way, I can use a custom Icon from mui in my toast?