Create toast provider

This commit is contained in:
Takeshi Kimata
2024-05-27 23:15:30 +09:00
parent 5ae4417c23
commit cfd6a9b339
10 changed files with 132 additions and 31 deletions

12
frontend/types/toast.ts Normal file
View 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) => {};
};