MCPcopy Create free account
hub / github.com/NativeScript/template-macos-solid / _findItem

Function _findItem

src/sidebar.tsx:54–58  ·  view source on GitHub ↗
(item: SidebarItem, title: string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected