mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-03 11:06:32 +09:00
17 lines
793 B
TypeScript
17 lines
793 B
TypeScript
import { pageMetadata } from "@/lib/seo";
|
|
import { notFound } from "next/navigation";
|
|
import { SimpleTitlePage } from "@/components/pages/simple-title-page";
|
|
import { getLocaleMessages, isLocale } from "@/lib/i18n";
|
|
|
|
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
|
|
const { locale } = await params;
|
|
if (!isLocale(locale)) notFound();
|
|
return pageMetadata(locale, "/city", { title: getLocaleMessages(locale).header.nav[3] });
|
|
}
|
|
|
|
export default async function CityPage({ params }: { params: Promise<{ locale: string }> }) {
|
|
const { locale } = await params;
|
|
if (!isLocale(locale)) notFound();
|
|
return <SimpleTitlePage locale={locale} title={getLocaleMessages(locale).header.nav[3]} image="/city/city-hero.webp" imagePosition="47% 24%" />;
|
|
}
|