import React, { useContext } from "react"; import { MenuContext } from "../../widgets/Menu/context"; import { Flex } from "../Box"; import AnimatedIconComponent from "../Svg/AnimatedIconComponent"; import { StyledBottomNavItem, StyledBottomNavText } from "./styles"; import { BottomNavItemProps } from "./types"; const BottomNavItem: React.FC> = ({ label, icon, fillIcon, href, showItemsOnMobile = false, isActive = false, disabled = false, ...props }) => { const { linkComponent } = useContext(MenuContext); const bottomNavItemContent = ( {icon && ( )} {label} ); return showItemsOnMobile ? ( {bottomNavItemContent} ) : ( {bottomNavItemContent} ); }; export default BottomNavItem;