import { bentoContract } from "../../../contracts/bento"; import { datastarEventBinding, type DatastarEventBinding } from "./event-binding"; export type BentoTile = { id: string; label: string; col: number; row: number; width: number; height: number }; export type BentoGrid = { id: string; label: string; columns: number; items: readonly BentoTile[] }; export function BentoWorkspace({ grids, move, resize, }: { grids: readonly BentoGrid[]; move?: DatastarEventBinding; resize?: DatastarEventBinding; }) { return ( {grids.map((grid) => (

{grid.label}

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