Can I close the alert form MUI using the crossIcon?
I have a snackBar and inside an alert both from MUI. The issue is that I want to close the alert using a function and when clicking on the crossIcon, close it. I don't know why it's not working as…