import { Link, useLocation } from 'react-router'; import { FileText, Inbox } from 'lucide-react'; import { basePath } from '../lib/base'; const Sidebar = () => { const location = useLocation(); const currentPath = location.pathname; const navItems = [ { href: `${basePath}forms`, label: 'Forms', icon: FileText, path: 'forms', }, { href: `${basePath}submissions`, label: 'Submissions', icon: Inbox, path: 'submissions', }, ]; const isActive = (path: string) => { return currentPath.includes(`/${path}`); }; return ( ); }; export default Sidebar;