docs: fix search in api reference (#6578)

* docs: fix search in api reference

* remove log messages
This commit is contained in:
Shahed Nasser
2024-03-05 10:02:56 +01:00
committed by GitHub
parent 84208aafc1
commit 82db53c99e
3 changed files with 37 additions and 14 deletions
+1
View File
@@ -1,4 +1,5 @@
export * from "./use-copy"
export * from "./use-is-browser"
export * from "./use-keyboard-shortcut"
export * from "./use-scroll-utils"
export * from "./use-search-navigation"
@@ -0,0 +1,13 @@
"use client"
import { useEffect, useState } from "react"
export const useIsBrowser = () => {
const [isBrowser, setIsBrowser] = useState(false)
useEffect(() => {
setIsBrowser(typeof window !== "undefined")
}, [])
return isBrowser
}