import React, { type ReactNode } from 'react'; import { type UseSortableRenderProps, type SortableId } from '../SortableProvider/components/SortableBase'; export type { UseSortableRenderProps as SortableItemRenderProps }; export interface SortableItemProps { id: SortableId; isDragOverlay?: boolean; children?: (itemRenderProps: UseSortableRenderProps) => ReactNode; render?: (itemRenderProps: UseSortableRenderProps) => ReactNode; /** * The key prop is mandatory for the sorting animation to work properly. * Without it, React will not be able to identify which DOM element has changed its position. */ key: SortableId; } declare const SortableItem: React.FC; export default SortableItem;