import Button from 'react-bootstrap/Button' import { useRouter } from 'next/router' import Link from 'next/link' import LayoutCenter from '../components/layout-center' import { useMe } from '../components/me' import { DiscussionForm } from '../components/discussion-form' import { LinkForm } from '../components/link-form' import { getGetServerSideProps } from '../api/ssrApollo' import AccordianItem from '../components/accordian-item' import { PollForm } from '../components/poll-form' import { BountyForm } from '../components/bounty-form' export const getServerSideProps = getGetServerSideProps() export function PostForm () { const router = useRouter() const me = useMe() if (!router.query.type) { return (