The actually recursive part
({ subject }: NestedParentProps)
| 31 | |
| 32 | /** The actually recursive part */ |
| 33 | function 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 | |
| 48 | const Breadcrumb = styled.div` |
| 49 | margin-right: 1rem; |
nothing calls this directly
no test coverage detected