import { action, Default, NAME, pattern, UI, Writable } from "commonfabric"; interface Input { content: Writable>; } export default pattern(({ content }) => { const replaceContent = action(() => content.set("random string")); return { [NAME]: "Collaborative Code Editor Test", [UI]: (
Replace content
{content}
), content, }; });