(item: SidebarItem, title: string)
| 52 | }; |
| 53 | |
| 54 | function _findItem(item: SidebarItem, title: string): SidebarItem | undefined { |
| 55 | return item.title === title |
| 56 | ? item |
| 57 | : item.children?.find((child) => _findItem(child, title)); |
| 58 | } |
| 59 | |
| 60 | export default function Sidebar(props: SidebarProps) { |
| 61 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected