MCPcopy Index your code
hub / github.com/atomicdata-dev/atomic-data-browser / NestedParent

Function NestedParent

data-browser/src/components/Parent.tsx:33–46  ·  view source on GitHub ↗

The actually recursive part

({ subject }: NestedParentProps)

Source from the content-addressed store, hash-verified

31
32/** The actually recursive part */
33function NestedParent({ subject }: NestedParentProps): JSX.Element {
34 const resource = useResource(subject, { allowIncomplete: true });
35 const [parent] = useString(resource, properties.parent);
36
37 return (
38 <>
39 {parent && <NestedParent subject={parent} />}
40 <Breadcrumb>
41 <ResourceInline subject={subject} />
42 </Breadcrumb>
43 <Breadcrumb>{'/'}</Breadcrumb>
44 </>
45 );
46}
47
48const Breadcrumb = styled.div`
49 margin-right: 1rem;

Callers

nothing calls this directly

Calls 2

useResourceFunction · 0.90
useStringFunction · 0.90

Tested by

no test coverage detected