ekzyis d237861ff5
Use module path aliases (#938)
* Use module path aliases

* fix broken refactor

* path mapping for svgs, style, and remaining places (bonus: lose babel dep)

---------

Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-03-19 19:37:31 -05:00

27 lines
733 B
JavaScript

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}
rank
/>
</Layout>
)
}