MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / navigate

Function navigate

apps/baseai.dev/src/components/Search.tsx:43–58  ·  view source on GitHub ↗
({ itemUrl }: { itemUrl?: string })

Source from the content-addressed store, hash-verified

41 >({});
42
43 function navigate({ itemUrl }: { itemUrl?: string }) {
44 if (!itemUrl) {
45 return;
46 }
47
48 router.push(itemUrl);
49
50 if (
51 itemUrl ===
52 window.location.pathname +
53 window.location.search +
54 window.location.hash
55 ) {
56 close();
57 }
58 }
59
60 let [autocomplete] = useState<Autocomplete>(() =>
61 createAutocomplete<

Callers

nothing calls this directly

Calls 1

closeFunction · 0.85

Tested by

no test coverage detected