diff --git a/web/components/BottomBar.tsx b/web/components/BottomBar.tsx index c9aa6c6e..8520ec7a 100644 --- a/web/components/BottomBar.tsx +++ b/web/components/BottomBar.tsx @@ -1,84 +1,67 @@ -import ChatIcon from "@mui/icons-material/Chat"; -import HomeIcon from "@mui/icons-material/Home"; -import PeopleIcon from "@mui/icons-material/People"; -import SettingsIcon from "@mui/icons-material/Settings"; -import { BottomNavigation, BottomNavigationAction, Box } from "@mui/material"; import Link from "next/link"; +import { MdHome } from "react-icons/md"; +import { MdPeople } from "react-icons/md"; +import { MdChat } from "react-icons/md"; +import { MdSettings } from "react-icons/md"; type Props = { activeTab: "0_home" | "1_friends" | "2_chat" | "3_settings"; }; +function BottomBarCell({ + label, + href, + iconComponent, + isActive, +}: { + label: string; + href: string; + iconComponent: React.ReactNode; + isActive: boolean; +}) { + return ( + + {iconComponent} + + {label} + + + ); +} + export default function BottomBar(props: Props) { const { activeTab } = props; return ( - - {/* TODO: 単に Viewer として BottomNavigation を使用しているので Box 等で置き換える */} - - - } - /> - - } - /> - - } - /> - - } - /> - - +
+ } + /> + } + /> + } + /> + } + /> +
); }