MCPcopy
hub / github.com/srcbookdev/srcbook / onCreateSrcbook

Function onCreateSrcbook

packages/web/src/components/navbar.tsx:82–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 async function onCreateSrcbook() {
83 const { result } = await createSrcbook({
84 path: props.baseDir,
85 name: 'Untitled',
86
87 // FIXME: copy the same language as the currently visible srcbook - should this be less
88 // implicit?
89 language: props.session.language,
90 });
91 openSrcbook(result.path);
92 }
93
94 return (
95 <>

Callers

nothing calls this directly

Calls 2

createSrcbookFunction · 0.90
openSrcbookFunction · 0.70

Tested by

no test coverage detected