import { Outlet, useLocation } from "react-router"; import List from "../../md-components/List"; import ListItem from "../../md-components/ListItem"; import { Link } from "react-router-dom"; import Icon from "../../md-components/Icon"; const AccountPage = () => { const location = useLocation(); const menuRoutes = [ { name: "Главная", path: "/", icon: "home", }, { name: "Коллекции", path: "/collections", icon: "collections_bookmark", }, { name: "Полка", path: "/shelve", icon: "shelves", }, { name: "Загрузить книгу", path: "/upload", icon: "upload", }, // { // name: "Настройки", // path: "/settings", // icon: "settings", // }, // { // name: "Безопасность", // path: "/security", // icon: "security", // }, // { // name: "Администрирование", // path: "/admin", // icon: "admin_panel_settings", // }, ]; return ( <>
{menuRoutes.map((route) => ( {} /*navigate(route.path)*/} > {route.icon} {route.name} ))}
{menuRoutes.map((route, i) => (
{route.icon}
{route.name} ))}
); }; export default AccountPage;