MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / ReactPlayground

Function ReactPlayground

lowcode-editor/src/editor/index.tsx:10–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import { Preview } from "./components/Preivew";
9
10export default function ReactPlayground() {
11 const { mode } = useComponetsStore();
12
13 return <div className='h-[100vh] flex flex-col'>
14 <div className='h-[60px] flex items-center border-b-[1px] border-[#000]'>
15 <Header />
16 </div>
17 {
18 mode === 'edit'
19 ? <Allotment>
20 <Allotment.Pane preferredSize={240} maxSize={400} minSize={200}>
21 <MaterialWrapper />
22 </Allotment.Pane>
23 <Allotment.Pane>
24 <EditArea />
25 </Allotment.Pane>
26 <Allotment.Pane preferredSize={300} maxSize={500} minSize={300}>
27 <Setting />
28 </Allotment.Pane>
29 </Allotment>
30 : <Preview/>
31 }
32 </div>
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected