import { HomeIcon, UserGroupIcon, SearchIcon, BookOpenIcon, } from '@heroicons/react/outline' import clsx from 'clsx' import Link from 'next/link' import { useRouter } from 'next/router' const navigation = [ { name: 'Home', href: '/home', icon: HomeIcon }, { name: 'Markets', href: '/markets', icon: SearchIcon }, { name: 'About', href: 'https://docs.manifold.markets', icon: BookOpenIcon }, ] type Item = { name: string href: string icon: React.ComponentType<{ className?: string }> } const communities = [ { name: 'Movies', href: '#' }, { name: 'Food', href: '#' }, { name: 'Sports', href: '#' }, { name: 'Animals', href: '#' }, { name: 'Science', href: '#' }, { name: 'Dinosaurs', href: '#' }, { name: 'Talents', href: '#' }, { name: 'Gaming', href: '#' }, ] function SidebarItem(props: { item: Item; currentPage: string }) { const { item, currentPage } = props return ( ) } export default function Sidebar() { const router = useRouter() const currentPage = router.pathname return ( ) }