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 (
{me?.freePosts && me?.sats < 1 ?
{me.freePosts} free posts left
: null} or
more
} body={
or
} />
) } if (router.query.type === 'discussion') { return } else if (router.query.type === 'link') { return } else if (router.query.type === 'poll') { return } else { return } } export default function Post () { return ( ) }