wealth/apps/bull/src/app/layout.tsx

32 lines
894 B
TypeScript
Raw Normal View History

// First: fills the server module graph before anything renders.
import '../bootstrap/bootstrap.server';
import '../styles/app.css';
import { Element } from '@lumina/island/primitives/element';
import type { Metadata } from 'next';
2026-10-02 14:19:11 +00:00
import type { ReactNode } from 'react';
import { rootMetadata } from '../configs';
import { i18n } from '../i18n';
2026-10-02 15:42:11 +00:00
import { yekanBakh, yekanBakhLatin } from '../styles';
import { AppProviders } from './organisms/app-providers';
export function generateMetadata(): Metadata {
return rootMetadata();
}
2026-10-02 14:19:11 +00:00
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<Element
tag="html"
lang={i18n.language}
dir={i18n.dir()}
2026-10-02 15:42:11 +00:00
className={`${yekanBakh.variable} ${yekanBakhLatin.variable}`}
>
<Element tag="body">
<AppProviders>{children}</AppProviders>
</Element>
</Element>
2026-10-02 14:19:11 +00:00
);
}