"use client"; import { createContext, useContext, ReactNode, useState, SetStateAction, Dispatch, } from "react"; export interface DraggingStyleContextInterface { setIsDragging: Dispatch>; } const defaultDraggingValue: DraggingStyleContextInterface = { setIsDragging: () => {}, }; export const DragStyleContext = createContext(defaultDraggingValue); export function useDragStyleContext() { return useContext(DragStyleContext); } export function DragStyleContextProvider({ children, }: { children: ReactNode; }) { const [isDragging, setIsDragging] = useState(false); return (
{children}
); }