MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / SampleJSONPreview

Function SampleJSONPreview

app/components/Home/HomeInfoBoxSection.tsx:135–158  ·  view source on GitHub ↗
({
  children,
  initialSelection,
}: {
  children: React.ReactNode;
  initialSelection: string;
})

Source from the content-addressed store, hash-verified

133}
134
135function SampleJSONPreview({
136 children,
137 initialSelection,
138}: {
139 children: React.ReactNode;
140 initialSelection: string;
141}) {
142 return (
143 <JsonDocProvider
144 doc={{
145 id: "sample",
146 title: "Sample",
147 type: "raw",
148 readOnly: false,
149 contents: "",
150 }}
151 path={initialSelection}
152 >
153 <JsonProvider initialJson={json}>
154 <JsonColumnViewProvider>{children}</JsonColumnViewProvider>
155 </JsonProvider>
156 </JsonDocProvider>
157 );
158}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected