feat(SnackbarProvider): initial provider

This commit is contained in:
Christopher committed 2021-02-09 00:35:35 +01:00
1 parent eaf27f37ef
commit babce2f568
3 files changed
+47

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import { useContext } from 'react';
import { SnackbarContext } from '../components/SnackbarProvider';
interface ISnackBar {
addAlert: (message: string, severity: string) => void;
}
export const useSnackbar = (): ISnackBar => useContext(SnackbarContext);