stacker.news/pages/~/[sub]/post.js

17 lines
490 B
JavaScript
Raw Normal View History

2022-02-17 17:23:43 +00:00
import { getGetServerSideProps } from '../../../api/ssrApollo'
import { SUB } from '../../../fragments/subs'
import LayoutCenter from '../../../components/layout-center'
import JobForm from '../../../components/job-form'
export const getServerSideProps = getGetServerSideProps(SUB, null,
data => !data.sub)
2022-02-17 17:23:43 +00:00
// need to recent list items
export default function Post ({ data: { sub } }) {
return (
<LayoutCenter sub={sub.name}>
<JobForm sub={sub} />
</LayoutCenter>
)
}