/// import { Cell, Default, handler, NAME, recipe, UI } from "commontools"; type Input = { tags: string[]; }; type Result = { tags: Default; }; const updateTags = handler< { detail: { tags: string[]; }; }, { tags: Cell; } >(({ detail }, state) => { state.tags.set(detail?.tags ?? []); }); export default recipe( "ct-tags demo", ({ tags }) => { return { [NAME]: "ct-tags demo", [UI]: ( ), tags, }; }, );