import * as React from "react";
import {
BottomNavigation,
BottomNavigationAction,
Typography,
} from "@mui/material";
import { Home, Groups, Message, ShowChart } from "@mui/icons-material";
import Box from "@mui/material/Box";
import BottomLogo from "../../assets/svgs/BottomLogo5.svg";
import { CustomSvg } from "../../common/CustomSvg";
import { WalletIcon } from "../../assets/Icons/WalletIcon";
import { HubsIcon } from "../../assets/Icons/HubsIcon";
import { TradingIcon } from "../../assets/Icons/TradingIcon";
import { MessagingIcon } from "../../assets/Icons/MessagingIcon";
const IconWrapper = ({ children, label, color }) => {
return (
{children}
{label}
);
};
export const MobileFooter = ({
selectedGroup,
groupSection,
isUnread,
goToAnnouncements,
isUnreadChat,
goToChat,
goToThreads,
setOpenManageMembers,
groupChatHasUnread,
groupsAnnHasUnread,
directChatHasUnread,
chatMode,
openDrawerGroups,
goToHome,
setIsOpenDrawerProfile,
mobileViewMode,
setMobileViewMode,
setMobileViewModeKeepOpen,
hasUnreadGroups,
hasUnreadDirects
}) => {
const [value, setValue] = React.useState(0);
return (
setValue(newValue)}
sx={{ backgroundColor: "transparent", flexGrow: 1 }}
>
{
// setMobileViewMode('wallet')
setIsOpenDrawerProfile(true);
}}
icon={
}
sx={{ color: value === 0 ? "white" : "gray", padding: "0px 10px" }}
/>
{
setMobileViewMode("groups");
}}
icon={
}
sx={{
color: value === 0 ? "white" : "gray",
paddingLeft: "10px",
paddingRight: "42px",
}}
/>
{/* Floating Center Button */}
{/* Custom Center Icon */}
setValue(newValue)}
sx={{ backgroundColor: "transparent", flexGrow: 1 }}
>
{
setMobileViewModeKeepOpen("messaging");
}}
icon={
}
sx={{
color: value === 2 ? "white" : "gray",
paddingLeft: "55px",
paddingRight: "10px",
}}
/>
{
chrome.tabs.create({ url: "https://www.qort.trade"});
}}
icon={
}
sx={{ color: value === 3 ? "white" : "gray", padding: "0px 10px" }}
/>
);
};