AllAi/apps/web/app/[locale]/account/page.tsx
2025-11-14 21:54:04 +03:00

22 lines
533 B
TypeScript

import { loadDictionary } from "@allai/i18n/server";
import { Locale, resolveLocale } from "@/config/i18n";
import { AccountClient } from "./AccountClient";
type PageProps = {
params: { locale: string };
};
export default async function AccountPage({ params }: PageProps) {
const locale = resolveLocale(params.locale);
const dictionary = await loadDictionary(locale);
return (
<AccountClient
locale={locale as Locale}
dictionaryAccount={dictionary.account}
fullDictionary={dictionary}
/>
);
}