import { Form, Select } from './form' import { useRouter } from 'next/router' export default function RecentHeader ({ type, sub }) { const router = useRouter() const prefix = sub?.name ? `/~${sub.name}` : '' const items = ['posts', 'bounties', 'comments', 'links', 'discussions', 'polls'] if (!sub?.name) { items.push('bios') } return (
) }