import { JSONSchema, NAME, recipe, UI } from "commontools"; const InputSchema = { type: "object", properties: { title: { type: "string", default: "Untitled Research Report", asCell: true, }, content: { type: "string", default: "", asCell: true, }, }, } as const satisfies JSONSchema; const OutputSchema = InputSchema; export default recipe( InputSchema, OutputSchema, ({ title, content }) => { return { [NAME]: title, [UI]: (
), title, content, }; }, );