forked from code-dot-org/protolab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLab.tsx
More file actions
31 lines (26 loc) · 705 Bytes
/
Lab.tsx
File metadata and controls
31 lines (26 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import {CodeOrg, BlockWorkspace, Header} from 'libprotolab/layout/CodeOrg'
import {blocklyOptions} from './blocks/'
import {Save, Load, Reset, Run} from 'libprotolab/blockly/workspace/buttons'
export const LAB_NAME = "Protolab"
const Toolbar = () =>
<div style={{
display: 'flex',
justifyContent: 'flex-end',
gap: 4,
}}>
<Run />
<Reset />
<Save />
<Load />
</div>
const Output = () =>
<div>Output</div>
const Instructions = () =>
<div>Instructions</div>
export const Lab = () =>
<CodeOrg
header={<Header toolbar=<Toolbar/> />}
workspace={<BlockWorkspace blocklyOptions={blocklyOptions} />}
output={<Output/>}
instructions={<Instructions/>}
/>