@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
20 lines (19 loc) • 780 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { DragAndDropSize16Px } from '@coveord/plasma-react-icons';
import { useCollectionContext } from '../../CollectionContext.js';
/**
* Shared drag handle component used by both horizontal and vertical layouts.
* Renders the drag icon with proper event handlers for drag and drop functionality.
*/ export const DragHandle = ({ setActivatorNodeRef, listeners, attributes })=>{
const { getStyles } = useCollectionContext();
return /*#__PURE__*/ _jsx("div", {
ref: setActivatorNodeRef,
...listeners,
...attributes,
...getStyles('dragHandle'),
children: /*#__PURE__*/ _jsx(DragAndDropSize16Px, {
height: 16
})
});
};
//# sourceMappingURL=DragHandle.js.map