,
) {
const { state, children, innerRef, style, ...rest } = props;
const { activeNode } = state;
return (
{activeNode && !activeNode.collection.result.isEmpty && (
)}
{isValidElement(children)
? cloneElement(
children as ReactElement>,
{
style: {
...children.props.style,
opacity: style?.opacity,
},
},
)
: children}
);
}
export const NestedTableDragAndDropOverlay = observer(
_NestedTableDragAndDropOverlay,
);