import { useListDnD } from '@cap-rel/smartcommon'; function SortableList({ initialItems, onReorder }) { const { items, handleDragStart, handleDragOver, handleDrop } = useListDnD({ initialItems, onReorder: (newItems) => { console.log('Nouvel ordre:', newItems); onReorder(newItems); } }); return ( ); }