/// import { Cell, recipe, UI } from "commontools"; interface State { selectedValue: Cell; lastItems: Cell; } // Test destructured event handler params with typed ct-select onct-change export default recipe("Destructure", (state) => { return { [UI]: ( { state.selectedValue.set(value); state.lastItems.set(items.map(i => i.label).join(", ")); }} /> ), }; });