stacker.news/pages/index.js

20 lines
505 B
JavaScript
Raw Normal View History

2021-04-12 13:05:09 -05:00
import Layout from '../components/layout'
2021-04-14 18:56:29 -05:00
import Items from '../components/items'
2021-10-26 15:49:37 -05:00
import { getGetServerSideProps } from '../api/ssrApollo'
2022-02-17 11:23:43 -06:00
import { ITEMS } from '../fragments/items'
2023-06-19 20:26:34 -05:00
import Snl from '../components/snl'
2021-04-12 13:05:09 -05:00
2022-02-17 11:23:43 -06:00
export const getServerSideProps = getGetServerSideProps(ITEMS)
2021-09-30 10:46:58 -05:00
2022-02-17 11:23:43 -06:00
export default function Index ({ data: { items: { items, pins, cursor } } }) {
2021-04-12 13:05:09 -05:00
return (
<Layout>
2023-06-19 20:26:34 -05:00
<Snl />
2021-09-30 10:46:58 -05:00
<Items
2022-01-07 10:32:31 -06:00
items={items} pins={pins} cursor={cursor}
2022-02-17 11:23:43 -06:00
rank
2021-09-30 10:46:58 -05:00
/>
2021-04-12 13:05:09 -05:00
</Layout>
)
}