Shop Layout 4
💡
Folder location:
src/components/layouts/shop-layout-4
Examples
import ShopLayout4 from 'components/layouts/shop-layout-4'
import api from 'utils/__api__/furniture-3'
import layoutApi from 'utils/__api__/layout'
export default async function Layout({ children }) {
const [categories, data] = await Promise.all([
api.getCategories(),
layoutApi.getLayoutData(),
])
return (
<ShopLayout4 navigation={categories} data={data}>
{children}
</ShopLayout4>
)
}
Inside Components
Used
Props
Name | Type | Required | Default |
---|---|---|---|
children | ReactNode | Yes | - |
navigation | ReactNode | Yes | - |