MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / createConfig

Function createConfig

app/src/components/diffCss.tsx:71–83  ·  view source on GitHub ↗
(doc: string, theme: 'light' | 'dark')

Source from the content-addressed store, hash-verified

69}
70
71function createConfig(doc: string, theme: 'light' | 'dark') {
72 const maybeDark = theme === 'dark' ? [oneDark] : []
73 return {
74 doc,
75 extensions: [
76 [...basicSetup],
77 EditorView.editable.of(false),
78 EditorState.readOnly.of(true),
79 css(),
80 ...maybeDark,
81 ],
82 }
83}

Callers 1

MergeCompFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected