19 lines
530 B
JavaScript
19 lines
530 B
JavaScript
import Layout from '../components/layout'
|
|
import Items from '../components/items'
|
|
import { getGetServerSideProps } from '../api/ssrApollo'
|
|
import { MORE_ITEMS } from '../fragments/items'
|
|
|
|
const variables = { sort: 'recent' }
|
|
export const getServerSideProps = getGetServerSideProps(MORE_ITEMS, { sort: 'recent' })
|
|
|
|
export default function Index ({ data: { moreItems: { items, cursor } } }) {
|
|
return (
|
|
<Layout>
|
|
<Items
|
|
items={items} cursor={cursor}
|
|
variables={variables} rank
|
|
/>
|
|
</Layout>
|
|
)
|
|
}
|