"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 { useSupabase } from "@/lib/context/SupabaseProvider"; import { redirectToLogin } from "@/lib/router/redirectToLogin"; import styles from "./page.module.scss"; const Search = (): JSX.Element => { const pathname = usePathname(); const { session } = useSupabase(); useEffect(() => { if (session === null) { redirectToLogin(); } }, [pathname, session]); return (