/// import { Cell, Default, NAME, pattern, UI } from "commontools"; import Suggestion from "../system/suggestion.tsx"; export default pattern<{ title: Default }>( ({ title }) => { const suggestion = Suggestion({ situation: "gimme counter plz", context: {}, }); const suggestion2 = Suggestion({ situation: "gimme note with the attached content", context: { content: "This is the expected content", value: Cell.of(0), }, }); return { [NAME]: title, [UI]: (

Suggestion Tester

Counter

{suggestion.result ? suggestion.result : "waiting..."}

Note

{suggestion2.result ? suggestion2.result : "waiting..."}
), suggestion, }; }, );