diff options
Diffstat (limited to 'apps/web/lib/context.ts')
| -rw-r--r-- | apps/web/lib/context.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/apps/web/lib/context.ts b/apps/web/lib/context.ts deleted file mode 100644 index 6c6bfa1b..00000000 --- a/apps/web/lib/context.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { createContext, useContext } from "react"; - -export interface DragContextType { - isDraggingOver: boolean; - setIsDraggingOver: React.Dispatch<React.SetStateAction<boolean>>; -} - -const DragContext = createContext<DragContextType | undefined>(undefined); - -export const useDragContext = () => { - const context = useContext(DragContext); - if (context === undefined) { - throw new Error("useAppContext must be used within an AppProvider"); - } - return context; -}; - -export default DragContext; |