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