@@ -3,12 +3,14 @@ import LeagueDetailContent from "@/components/leagues/league-detail-content";
|
||||
|
||||
import { Metadata } from "next";
|
||||
|
||||
export async function generateMetadata(props: { params: Promise<{ locale: string; id: string }> }): Promise<Metadata> {
|
||||
export async function generateMetadata(props: {
|
||||
params: Promise<{ locale: string; id: string }>;
|
||||
}): Promise<Metadata> {
|
||||
const params = await props.params;
|
||||
const { locale, id } = params;
|
||||
const t = await getTranslations({ locale, namespace: "seo" });
|
||||
const siteUrl = process.env.NEXT_PUBLIC_APP_URL || "https://iddaai.com";
|
||||
|
||||
|
||||
const pathSegment = `leagues/${id}`;
|
||||
|
||||
return {
|
||||
@@ -24,7 +26,9 @@ export async function generateMetadata(props: { params: Promise<{ locale: string
|
||||
};
|
||||
}
|
||||
|
||||
export default async function LeagueDetailPage(props: { params: Promise<{ id: string }> }) {
|
||||
export default async function LeagueDetailPage(props: {
|
||||
params: Promise<{ id: string }>;
|
||||
}) {
|
||||
const { id } = await props.params;
|
||||
return <LeagueDetailContent leagueId={id} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user