(props: StoreProp)
| 1141 | }; |
| 1142 | |
| 1143 | const Panel = (props: StoreProp) => { |
| 1144 | const position = useValue(POSITION_VALUE, props.s); |
| 1145 | const open = useValue(OPEN_VALUE, props.s); |
| 1146 | return ( |
| 1147 | <> |
| 1148 | {open() ? ( |
| 1149 | <main data-position={position() ?? 1}> |
| 1150 | <Header s={props.s} /> |
| 1151 | <ErrorBoundary |
| 1152 | fallback={<span class="warn">{INSPECTOR_ERROR_MESSAGE}</span>} |
| 1153 | > |
| 1154 | <Body s={props.s} /> |
| 1155 | </ErrorBoundary> |
| 1156 | </main> |
| 1157 | ) : ( |
| 1158 | EMPTY_STRING |
| 1159 | )} |
| 1160 | </> |
| 1161 | ); |
| 1162 | }; |
| 1163 | |
| 1164 | export const Inspector = (props: InspectorProps) => { |
| 1165 | const position = props.position ?? 'right'; |
nothing calls this directly
no test coverage detected
searching dependent graphs…