import { IonContent, IonIcon, IonItem, IonLabel, IonList, IonListHeader, IonMenu, IonMenuToggle, IonNote } from '@ionic/react'; import { useLocation } from 'react-router-dom'; import { star, starOutline } from 'ionicons/icons'; import './Menu.css'; const Menu = ({ pages }) => { const location = useLocation(); return ( Overlay Hooks Choose one below to see a demo { pages.map((appPage, index) => { const isSelected = location.pathname === appPage.url; return ( { appPage.label } ); })} ); }; export default Menu;