From 4d3312aa9929188f65bda452868c451784f577bc Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:14:23 +0330 Subject: [PATCH] Import source: cshare-app/src/components/ToastContext Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- cshare-app/src/components/ToastContext.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 cshare-app/src/components/ToastContext.js 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); +} +