Skip to content

The open alternative to Salesforce, designed for AI.

513 B
Raw Blame
import { createContext } from 'react';

type NavigationDropTargetContextType = {
  activeDropTargetId: string | null;
  setActiveDropTargetId: (id: string | null) => void;
  forbiddenDropTargetId: string | null;
  setForbiddenDropTargetId: (id: string | null) => void;
};

export const NavigationDropTargetContext =
  createContext<NavigationDropTargetContextType>({
    activeDropTargetId: null,
    setActiveDropTargetId: () => {},
    forbiddenDropTargetId: null,
    setForbiddenDropTargetId: () => {},
  });