'use strict';

const React = require('react');

const DndContextStateContext = React.createContext({
  isDragging: false,
  activeLayerId: null,
  newComponentType: null,
  canDropOnLayer: () => false
});
const ComponentDragContext = React.createContext({
  isDragging: false,
  setDragging: () => {
  }
});
const useDndContext = () => React.useContext(DndContextStateContext);
const useComponentDragContext = () => React.useContext(ComponentDragContext);

exports.ComponentDragContext = ComponentDragContext;
exports.DndContextStateContext = DndContextStateContext;
exports.useComponentDragContext = useComponentDragContext;
exports.useDndContext = useDndContext;
