"use client"; import { usePathname } from "next/navigation"; import { useEffect } from "react"; import { QuivrLogo } from "@/lib/assets/QuivrLogo"; import { SearchBar } from "@/lib/components/ui/SearchBar/SearchBar"; import { useMenuContext } from "@/lib/context/MenuProvider/hooks/useMenuContext"; import styles from "./page.module.scss"; const Search = (): JSX.Element => { const {setIsOpened} = useMenuContext(); const pathname = usePathname() useEffect(() => { setIsOpened(false); }, [pathname]); return (