1 2 3 4 5 6 7 8 9 10 11
import { createContext } from 'react'; export interface DragContextType { isDraggingOver: boolean; setIsDraggingOver: React.Dispatch<React.SetStateAction<boolean>>; } const DragContext = createContext<DragContextType | undefined>(undefined); export default DragContext;