A Snackbar component and an useReset hook to auto hide snackbar after some duration.
More Improvements?
Wrap App with a Snackbar Provider and implement useSnackbar hook instead of adding Snackbar components where required (can also be solved using global state).
See comments