mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
mad formatting
This commit is contained in:
1 parent
6777498bcc
commit
046447b0fb
74 files changed
+329
-309
No files matched your search
@@ -1,15 +1,14 @@
|
||||
import { useContext } from 'react';
|
||||
import { SnackbarContext } from '../providers/SnackbarProvider';
|
||||
|
||||
|
||||
export interface IAlert {
|
||||
message: string;
|
||||
type: 'success' | 'error' | 'info'
|
||||
type: 'success' | 'error' | 'info';
|
||||
}
|
||||
|
||||
interface ISnackBar {
|
||||
addAlert: ({ message, type}: IAlert) => void;
|
||||
addAlert: ({ message, type }: IAlert) => void;
|
||||
alert: IAlert | null;
|
||||
}
|
||||
|
||||
export const useSnackbar = (): ISnackBar => useContext(SnackbarContext);
|
||||
export const useSnackbar = (): ISnackBar => useContext(SnackbarContext);
|
||||
Reference in new issue
Block a user