import {
BellIcon,
GlobeAltIcon as GlobeOutline,
HomeIcon,
MagnifyingGlassIcon
} from "@heroicons/react/24/outline";
import {
BellIcon as BellIconSolid,
GlobeAltIcon as GlobeSolid,
HomeIcon as HomeIconSolid
} from "@heroicons/react/24/solid";
import getAvatar from "@hey/helpers/getAvatar";
import type { MouseEvent, ReactNode } from "react";
import { Link, useLocation } from "react-router";
import { Image } from "@/components/Shared/UI";
import useHasNewNotifications from "@/hooks/useHasNewNotifications";
import { useMobileDrawerModalStore } from "@/store/non-persisted/modal/useMobileDrawerModalStore";
import { useAccountStore } from "@/store/persisted/useAccountStore";
import MobileDrawerMenu from "./MobileDrawerMenu";
interface NavigationItemProps {
path: string;
label: string;
outline: ReactNode;
solid: ReactNode;
isActive: boolean;
onClick?: (e: MouseEvent) => void;
showIndicator?: boolean;
}
const NavigationItem = ({
path,
label,
outline,
solid,
isActive,
onClick,
showIndicator
}: NavigationItemProps) => (
{isActive ? solid : outline}
{showIndicator && (
)}
);
const BottomNavigation = () => {
const { pathname } = useLocation();
const { currentAccount } = useAccountStore();
const { show: showMobileDrawer, setShow: setShowMobileDrawer } =
useMobileDrawerModalStore();
const hasNewNotifications = useHasNewNotifications();
const handleAccountClick = () => setShowMobileDrawer(true);
const handleHomClick = (path: string, e: MouseEvent) => {
if (path === "/" && pathname === "/") {
e.preventDefault();
window.scrollTo(0, 0);
}
};
const navigationItems = [
{
label: "Home",
outline: ,
path: "/",
solid:
},
{
label: "Search",
outline: ,
path: "/search",
solid:
},
{
label: "Explore",
outline: ,
path: "/explore",
solid:
},
{
label: "Notifications",
outline: ,
path: "/notifications",
solid:
}
];
return (
);
};
export default BottomNavigation;