15 lines
479 B
TypeScript
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} />;
|
|
}
|