@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
20 lines (17 loc) • 696 B
JavaScript
'use client';
import { memo } from "react";
import { jsx } from "react/jsx-runtime";
import { DragOverlay, defaultDropAnimationSideEffects } from "@dnd-kit/core";
//#region src/SortableList/components/SortableOverlay.tsx
const dropAnimationConfig = { sideEffects: defaultDropAnimationSideEffects({ styles: { active: { opacity: "0.4" } } }) };
const SortableOverlay = memo(({ children }) => {
return /* @__PURE__ */ jsx(DragOverlay, {
dropAnimation: dropAnimationConfig,
children
});
});
SortableOverlay.displayName = "SortableOverlay";
var SortableOverlay_default = SortableOverlay;
//#endregion
export { SortableOverlay_default as default };
//# sourceMappingURL=SortableOverlay.mjs.map