import { DragOverlayProps } from '@wix/wix-style-react-incubator/dnd-kit/core'; import React from 'react'; import { DragAndDropState } from './DragAndDropState'; import { FiltersMap } from '@wix/bex-core'; import { observer } from 'mobx-react-lite'; export interface DragOverlayTestComponentProps extends DragOverlayProps { state: DragAndDropState; } function _DragOverlayTestComponent( props: DragOverlayTestComponentProps, ) { const { wrapperElement: Wrapper, style, children, className, zIndex, state, } = props; if (state.activeId == null) { return null; } let child = children; if (Wrapper) { child = {children}; } return (
{child}
); } export const DragOverlayTestComponent = observer(_DragOverlayTestComponent);