@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
23 lines (22 loc) • 609 B
JavaScript
'use client';
import { DragOverlay, defaultDropAnimationSideEffects } from '@dnd-kit/core';
import { memo } from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
var dropAnimationConfig = {
sideEffects: defaultDropAnimationSideEffects({
styles: {
active: {
opacity: '0.4'
}
}
})
};
var SortableOverlay = /*#__PURE__*/memo(function (_ref) {
var children = _ref.children;
return /*#__PURE__*/_jsx(DragOverlay, {
dropAnimation: dropAnimationConfig,
children: children
});
});
SortableOverlay.displayName = 'SortableOverlay';
export default SortableOverlay;