diff --git a/cshare-app/src/components/ToastContext.js b/cshare-app/src/components/ToastContext.js new file mode 100644 index 0000000..a4d7027 --- /dev/null +++ b/cshare-app/src/components/ToastContext.js @@ -0,0 +1,8 @@ +import { createContext, useContext } from 'react'; + +export const ToastContext = createContext(null); + +export function useToast() { + return useContext(ToastContext); +} +