| 6 | |
| 7 | |
| 8 | export const App: s.Component<{headerSubtitle?: s.JSX.Element}> = props => { |
| 9 | // side panel is created here to keep the state between renders |
| 10 | const sidePanel = createSidePanel() |
| 11 | |
| 12 | return ( |
| 13 | <div |
| 14 | class="h-full w-full overflow-hidden grid text-base font-sans bg-panel-bg text-text" |
| 15 | style={{'grid-template-rows': `${theme.spacing[10]} 1fr`}} |
| 16 | > |
| 17 | <header class="p-2 flex items-center gap-x-2 bg-panel-bg b-b b-solid b-panel-border text-text"> |
| 18 | <div class="flex items-center gap-x-2"> |
| 19 | <ui.icon.SolidWhite class="w-4 h-4 text-disabled" /> |
| 20 | <div> |
| 21 | <h3>Solid Developer Tools</h3> |
| 22 | {props.headerSubtitle && ( |
| 23 | <p class="text-disabled font-mono text-sm">{props.headerSubtitle}</p> |
| 24 | )} |
| 25 | </div> |
| 26 | </div> |
| 27 | {/* <MainViewTabs /> */} |
| 28 | <Options /> |
| 29 | </header> |
| 30 | <div class="overflow-hidden"> |
| 31 | <ui.SplitterRoot> |
| 32 | <ui.SplitterPanel> |
| 33 | <StructureView /> |
| 34 | </ui.SplitterPanel> |
| 35 | {sidePanel.isOpen() && ( |
| 36 | <ui.SplitterPanel> |
| 37 | <sidePanel.SidePanel /> |
| 38 | </ui.SplitterPanel> |
| 39 | )} |
| 40 | </ui.SplitterRoot> |
| 41 | </div> |
| 42 | </div> |
| 43 | ) |
| 44 | } |
| 45 | |
| 46 | const Options: s.Component = () => { |
| 47 |
nothing calls this directly
no test coverage detected