import { MagnifyingGlassIcon, UserIcon } from "@heroicons/react/24/outline"; import { Link, NavLink } from "react-router-dom"; import { memo } from "react"; import { SearchBar } from "./SearchBar"; import { Logo } from "./Logo"; import Navigation from "./navigation"; import { UserMenu} from "./usermenu"; import { useAuth } from "@web/src/providers/auth-provider"; interface HeaderProps { onSearch?: (query: string) => void; } export const Header = memo(function Header({ onSearch }: HeaderProps) { const { isAuthenticated } = useAuth() return (
{ !isAuthenticated ? Login : }
); });