MCPcopy Index your code
hub / github.com/tinyplex/tinybase / Panel

Function Panel

src/ui-solid-inspector/index.tsx:1143–1162  ·  view source on GitHub ↗
(props: StoreProp)

Source from the content-addressed store, hash-verified

1141};
1142
1143const 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
1164export const Inspector = (props: InspectorProps) => {
1165 const position = props.position ?? 'right';

Callers

nothing calls this directly

Calls 1

useValueFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…