chore: remove search bar

This commit is contained in:
Ou 2024-11-01 19:40:40 +08:00
parent be288acf52
commit ac4a7e5d20

View File

@ -5,12 +5,6 @@ import { NavBar } from "../navbar"
import { Menu } from "./menu"
import { currentSourcesAtom, goToTopAtom, refetchSourcesAtom } from "~/atoms"
export function Search() {
const { toggle } = useSearchBar()
return (
<button type="button" className="i-ph:magnifying-glass-duotone btn" onClick={() => toggle()} />
)
}
function GoTop() {
const { ok, fn: goToTop } = useAtomValue(goToTopAtom)
return (
@ -76,7 +70,6 @@ export function Header() {
<span className="justify-self-end flex gap-2 items-center text-xl text-primary-600 dark:text-primary">
<GoTop />
<Refresh />
<Search />
<Menu />
</span>
</>