refactor: separation of shared components

This commit is contained in:
2025-08-06 11:39:44 +04:00
parent 9a780e99ae
commit 96c53380e0
18 changed files with 12 additions and 12 deletions

View File

@ -0,0 +1,24 @@
import type { PropsWithChildren } from "react";
import {
defaultDropAnimationSideEffects,
DragOverlay,
DropAnimation,
} from "@dnd-kit/core";
const dropAnimationConfig: DropAnimation = {
sideEffects: defaultDropAnimationSideEffects({
styles: {
active: {
opacity: "0.4",
},
},
}),
};
export function SortableOverlay({ children }: PropsWithChildren) {
return (
<DragOverlay dropAnimation={dropAnimationConfig}>
{children}
</DragOverlay>
);
}