mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(SnackbarProvider): initial provider
This commit is contained in:
1 parent
eaf27f37ef
commit
babce2f568
3 files changed
+47
No files matched your search
@@ -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);
|
||||
Reference in new issue
Block a user