Files
veilix.app/src/app/(front)/c/[host]/[locale]/(shell)/layout.tsx
T

12 lines
480 B
TypeScript
Raw Normal View History

2026-10-21 05:08:05 +02:00
import type { ReactNode } from 'react'
import { cabinetShell } from '@/app/(front)/context'
import { Shell } from '@/ui/cabinet/Shell'
type Props = { children: ReactNode; params: Promise<{ host: string; locale: string }> }
/** Разделы кабинета с навигацией */
export default async function ShellLayout({ children, params }: Props) {
const { host, locale } = await params
return <Shell shell={await cabinetShell(host, locale)}>{children}</Shell>
}