mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-17 11:21:35 +03:00
d0b8b797f6
Co-authored-by: Zewed <dewez.antoine2@gmail.com> Co-authored-by: Antoine Dewez <44063631+Zewed@users.noreply.github.com>
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
"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 (
|
|
<div className={styles.search_page_container}>
|
|
<div className={styles.main_container}>
|
|
<div className={styles.quivr_logo_wrapper}>
|
|
<QuivrLogo size={80} color="black" />
|
|
<div className={styles.quivr_text}>
|
|
<span>Talk to </span>
|
|
<span className={styles.quivr_text_primary}>Quivr</span>
|
|
</div>
|
|
</div>
|
|
<SearchBar />
|
|
</div>
|
|
</div >
|
|
);
|
|
};
|
|
|
|
export default Search;
|