import * as React from "react"; import { Link, useLocation } from "react-router-dom"; import { Transition } from "@headlessui/react"; import cs from "classnames"; import { useApp } from "../../contexts/AppProvider"; type MenuItem = { label: string; path: string; }; const MenuItems: MenuItem[] = [ { label: "Posições", path: "/", }, { label: "Minhas Posições", path: "/dashboard", }, { label: "Pedidos de Investimentos", path: "/orders/stake", }, { label: "Carteira", path: "/wallet", }, { label: "Pedidos de Troca", path: "/orders/exchange", }, { label: "Pedidos de Depósito", path: "/orders/deposit", }, ]; export const SideNav = () => { const { sideNavExpanded, setSideNavExpanded } = useApp(); const location = useLocation(); const handleCloseSideNav = () => { setSideNavExpanded(false); }; const handleKeyPress = (e: React.KeyboardEvent) => { if (e.key === "Escape") { handleCloseSideNav(); } }; return ( <>
); };