import { observer } from 'mobx-react-lite';
import { cloneElement } from 'react';
function _GridDragOverlayCardItem(props) {
    const { state: { _dnd }, renderItem, } = props;
    const el = _dnd && _dnd.activeIndex != null ? renderItem(_dnd.activeIndex) : undefined;
    return el
        ? cloneElement(el, {
            isOverlay: true,
        })
        : null;
}
export const GridDragOverlayCardItem = observer(_GridDragOverlayCardItem);
//# sourceMappingURL=GridDragOverlayCardItem.js.map