stacker.news/pages/index.js

18 lines
455 B
JavaScript

import Layout from '../components/layout'
import Items from '../components/items'
import { getGetServerSideProps } from '../api/ssrApollo'
import { ITEMS } from '../fragments/items'
export const getServerSideProps = getGetServerSideProps(ITEMS)
export default function Index ({ data: { items: { items, pins, cursor } } }) {
return (
<Layout>
<Items
items={items} pins={pins} cursor={cursor}
rank
/>
</Layout>
)
}