Create toast provider
This commit is contained in:
12
frontend/types/toast.ts
Normal file
12
frontend/types/toast.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export type ToastProps = {
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
|
||||
export type ToastMessages = {
|
||||
needSignedIn: string;
|
||||
sessionExpired: string;
|
||||
};
|
||||
|
||||
export type ToastContextType = {
|
||||
showToast: (text: string, mode: string) => {};
|
||||
};
|
||||
Reference in New Issue
Block a user