Files
Liam e77e07423a
All checks were successful
deploy / deploy (push) Successful in 47s
revert to client sided data fetching
2023-10-24 11:18:51 +01:00

15 lines
443 B
TypeScript

import GlobalRanking from "@/components/player/GlobalRanking";
import { getPageFromSearchQuery } from "@/utils/utils";
import { headers } from "next/headers";
type RankingCountryProps = {
params: { country: string };
};
export default function RankingCountry({ params }: RankingCountryProps) {
const page = getPageFromSearchQuery(headers());
const country = params.country;
return <GlobalRanking page={page} country={country} />;
}