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

16 lines
476 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'
2022-03-03 22:18:16 +00:00
export const getServerSideProps = getGetServerSideProps(SUB, null, '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>
)
}