import { ClipboardIcon, HomeIcon } from '@heroicons/react/outline' import clsx from 'clsx' import { useUser } from 'web/hooks/use-user' import { ManifoldLogo } from './manifold-logo' import { ProfileSummary } from './profile-menu' import React from 'react' import TrophyIcon from 'web/lib/icons/trophy-icon' import { SignInButton } from '../sign-in-button' import NotificationsIcon from '../notifications-icon' import { SidebarItem } from './sidebar' import { buildArray } from 'common/util/array' import { User } from 'common/user' import { Row } from '../layout/row' import { Spacer } from '../layout/spacer' const groupNavigation = [ { name: 'Markets', key: 'markets', icon: HomeIcon }, { name: 'About', key: 'about', icon: ClipboardIcon }, { name: 'Leaderboard', key: 'leaderboards', icon: TrophyIcon }, ] const generalNavigation = (user?: User | null) => buildArray( user && { name: 'Notifications', href: `/notifications`, key: 'notifications', icon: NotificationsIcon, } ) export function GroupSidebar(props: { groupName: string className?: string onClick: (key: string) => void joinOrAddQuestionsButton: React.ReactNode currentKey: string }) { const { className, groupName, currentKey } = props const user = useUser() return ( ) }