This is a default plugin that handles native drag events of type{' '}
{itemType}.
It contained the following payload:
{JSON.stringify(item, null, 2)}
);
/**
*
* @param hover the item which the native element was dropped on
* @param monitor the DropTargetMonitor as provided by react-dnd
* @param component the React component of the item which the native element was dropped on
*/
const plugin: NativeFactory = (hover, monitor, component) => ({
Component: Native,
name: 'ory/editor/core/content/default-native',
version: '0.0.1',
createInitialState: () => ({
item: monitor && monitor.getItem(),
itemType: monitor && monitor.getItemType(),
}),
// Set type to layout to create a layout cell instead of a content cell
// type: 'layout'
});
export default plugin;