diyaa.de/app/[locale]/page.tsx
2026-03-13 03:16:25 +01:00

15 lines
479 B
TypeScript

import HeroSection from "@/components/HeroSection";
import { getDictionary, isLocale, type Locale } from "@/lib/i18n";
import { notFound } from "next/navigation";
export default function HomePage({ params }: { params: { locale: string } }) {
if (!isLocale(params.locale)) {
notFound();
}
const locale = params.locale as Locale;
const dictionary = getDictionary(locale);
return <HeroSection locale={locale} home={dictionary.home} common={dictionary.common} />;
}