2024-02-14 20:27:00 +00:00
|
|
|
import Layout from '../../../../components/layout'
|
|
|
|
import { useRouter } from 'next/router'
|
|
|
|
import { getGetServerSideProps } from '../../../../api/ssrApollo'
|
|
|
|
import TopHeader from '../../../../components/top-header'
|
|
|
|
import { TOP_SUBS } from '../../../../fragments/subs'
|
|
|
|
import TerritoryList from '../../../../components/territory-list'
|
|
|
|
|
|
|
|
export const getServerSideProps = getGetServerSideProps({ query: TOP_SUBS })
|
|
|
|
|
|
|
|
export default function Index ({ ssrData }) {
|
|
|
|
const router = useRouter()
|
|
|
|
const variables = { ...router.query }
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Layout>
|
|
|
|
<TopHeader cat='territories' />
|
|
|
|
<TerritoryList
|
|
|
|
ssrData={ssrData}
|
|
|
|
query={TOP_SUBS}
|
|
|
|
variables={variables}
|
|
|
|
destructureData={data => data.topSubs}
|
2024-02-14 21:06:42 +00:00
|
|
|
rank
|
2024-02-14 20:27:00 +00:00
|
|
|
/>
|
|
|
|
</Layout>
|
|
|
|
)
|
|
|
|
}
|