import { type DropAnimation, type UniqueIdentifier, defaultDropAnimationSideEffects, DragOverlay, } from "@dnd-kit/core"; import { SortableItem} from "./item"; const dropAnimationOpts: DropAnimation = { sideEffects: defaultDropAnimationSideEffects({ styles: { active: { opacity: "0.4", }, }, }), } interface SortableOverlayProps extends React.ComponentPropsWithRef { activeId?: UniqueIdentifier | null } export function SortableOverlay({ activeId, dropAnimation = dropAnimationOpts, children, ...props }: SortableOverlayProps) { return ( {activeId ? ( {children} ) : null} ) }