MCPcopy Index your code
hub / github.com/triggerdotdev/jsonhero-web / InfoPanel

Function InfoPanel

app/components/InfoPanel.tsx:10–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import { useJsonDoc } from "~/hooks/useJsonDoc";
9
10export function InfoPanel() {
11 const { minimal } = useJsonDoc();
12 const selectedInfo = useSelectedInfo();
13 const relatedPaths = useRelatedPaths();
14
15 if (!selectedInfo) {
16 return <></>;
17 }
18
19 return (
20 <>
21 <div
22 className={`${
23 minimal ? "h-inspectorHeightMinimal" : "h-inspectorHeight"
24 } p-4 bg-white border-l-[1px] border-slate-300 overflow-y-auto no-scrollbar transition dark:bg-slate-800 dark:border-slate-600`}
25 >
26 <InfoHeader relatedPaths={relatedPaths} />
27
28 <div className="mb-4">
29 <PreviewValue />
30 </div>
31 <PropertiesValue />
32
33 <ContainerInfo />
34
35 <RelatedValues relatedPaths={relatedPaths} />
36 </div>
37 </>
38 );
39}

Callers

nothing calls this directly

Calls 3

useJsonDocFunction · 0.90
useSelectedInfoFunction · 0.90
useRelatedPathsFunction · 0.90

Tested by

no test coverage detected