import React from "react"; import { Home, ShoppingBag, ShoppingCart, Heart, User } from "lucide-react"; import { Link, useLocation } from "react-router-dom"; import styles from "./FooterBar.module.scss"; import { useCart } from "../../app/api/useCart"; import { useGetFavoritesQuery } from "../../app/api/favoritesApi"; import { useTranslation } from "react-i18next"; const FooterBar = () => { const location = useLocation(); const { t } = useTranslation(); const { cartCount } = useCart(); const { data: favoriteData } = useGetFavoritesQuery(); const favoriteCount = favoriteData?.length || 0; const navItems = [ { id: 1, icon: , label: t("navbar.home"), count: 0, path: "/" }, { id: 2, icon: , label: t("navbar.brands"), count: 0, path: "/brands", }, { id: 3, icon: , label: t("navbar.cart"), count: cartCount, path: "/cart", }, { id: 4, icon: , label: t("wishtList.likedProducts"), count: favoriteCount, path: "/wishlist", }, { id: 5, icon: , label: t("profile.profile"), count: 0, path: "/profile", }, ]; return ( ); }; export default FooterBar;