// First: the static `metadata` below reads a server-only namespace, which the server bootstrap // adds to i18n when this module loads, whichever module Next loads first (0055). import '../../../../bootstrap/bootstrap.server'; import { FlexBox } from '@lumina/island/atoms/flex-box'; import { DesktopHeader, DesktopPageTitle } from '@lumina/market/app/navigation'; import { RulesTabs } from '@lumina/market/app/screens/(flow)/terms/organisms/rules-tabs'; import type { Metadata } from 'next'; import type { ReactNode } from 'react'; import { i18n } from '../../../../i18n'; // Only the landing is indexed (0071); both tabs inherit this. export const metadata: Metadata = { title: i18n.t('rules:meta-title'), description: i18n.t('rules:meta-description'), robots: { index: false }, }; /** * «قوانین و مقررات لومینا» on desktop (G-2r): the 640 column under the header, with back beside the title * «قوانین و مقررات لومینا» and the tab row «قوانین و مقررات» · «شرایط اشتراک»; each tab's text sits in a panel. * Each tab is its own route with its own loading, so the title and the row stay while one loads; * back returns to where the rules were opened. No nav item is active. */ export default function RulesLayout({ children }: { children: ReactNode }) { const t = i18n.getFixedT(null, 'rules'); return ( {children} ); }