Function: layout
▸ Const
layout(Layout
, ParentLayout?
): ElementType
<any
>
Inspired by this excellent article: https://adamwathan.me/2019/10/17/persistent-layout-patterns-in-nextjs/
Parameters
Name | Type |
---|---|
Layout | ElementType <any > |
ParentLayout? | ElementType <any > |
Returns
ElementType
<any
>
Defined in
onekijs/packages/onekijs-framework/src/utils/layout.tsx:8