({
children,
initialSelection,
}: {
children: React.ReactNode;
initialSelection: string;
})
| 133 | } |
| 134 | |
| 135 | function 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected