22 lines
533 B
TypeScript
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}
|
|
/>
|
|
);
|
|
}
|
|
|