import { dragGroupContract } from "../../../contracts/drag-group"; import { datastarEventBinding, type DatastarEventBinding } from "./event-binding"; export type DragGroupList = { id: string; label: string; items: readonly { id: string; label: string }[]; }; export function DragGroup({ lists, move }: { lists: readonly DragGroupList[]; move?: DatastarEventBinding }) { return ( {lists.map((list) => (

{list.label}

{list.items.map((item) => (
{item.label}
))}
))}
); }