MCPcopy Index your code
hub / github.com/SyntaxUI/syntaxui / navigate

Function navigate

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 const visibleUrl = itemUrl.replace('(docs)/', '')
49
50 router.push(visibleUrl)
51
52 if (
53 visibleUrl ===
54 window.location.pathname + window.location.search + 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