2024-03-20 00:37:31 +00:00
|
|
|
import Layout from '@/components/layout'
|
|
|
|
import { getGetServerSideProps } from '@/api/ssrApollo'
|
|
|
|
import TopHeader from '@/components/top-header'
|
|
|
|
import { TOP_COWBOYS } from '@/fragments/users'
|
|
|
|
import UserList from '@/components/user-list'
|
2023-07-23 15:08:43 +00:00
|
|
|
|
2023-08-28 17:52:15 +00:00
|
|
|
export const getServerSideProps = getGetServerSideProps({ query: TOP_COWBOYS })
|
2023-07-23 15:08:43 +00:00
|
|
|
|
|
|
|
export default function Index ({ ssrData }) {
|
|
|
|
return (
|
|
|
|
<Layout>
|
|
|
|
<TopHeader cat='cowboys' />
|
|
|
|
<UserList
|
|
|
|
ssrData={ssrData} query={TOP_COWBOYS}
|
|
|
|
destructureData={data => data.topCowboys}
|
2024-02-14 21:06:42 +00:00
|
|
|
rank
|
2023-07-23 15:08:43 +00:00
|
|
|
/>
|
|
|
|
</Layout>
|
|
|
|
)
|
|
|
|
}
|