stacker.news/pages/index.js
keyan 18910fa2ed Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"
This reverts commit d0314ab73c42ebf85fe2f418dddd681af45dbc55.
2023-07-23 09:16:12 -05:00

20 lines
505 B
JavaScript

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