(props: {children?: React.ReactNode})
| 32 | } |
| 33 | |
| 34 | export function NavigationTreeItemContent(props: {children?: React.ReactNode}) { |
| 35 | return ( |
| 36 | <AriaNavigationTreeItemContent> |
| 37 | {({hasChildItems}: NavigationTreeItemContentRenderProps) => ( |
| 38 | <> |
| 39 | {props.children} |
| 40 | <Button |
| 41 | slot="chevron" |
| 42 | isDisabled={!hasChildItems} |
| 43 | style={{visibility: hasChildItems ? undefined : 'hidden'}}> |
| 44 | <ChevronRight aria-hidden /> |
| 45 | </Button> |
| 46 | </> |
| 47 | )} |
| 48 | </AriaNavigationTreeItemContent> |
| 49 | ); |
| 50 | } |
| 51 | |
| 52 | export function NavigationTreeItem(props: AriaNavigationTreeItemProps) { |
| 53 | return <AriaNavigationTreeItem {...props} />; |
nothing calls this directly
no outgoing calls
no test coverage detected