12 lines
480 B
TypeScript
12 lines
480 B
TypeScript
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>
|
||
|
|
}
|