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' export const getServerSideProps = getGetServerSideProps() export function PostForm () { const router = useRouter() const me = useMe() if (!router.query.type) { return (