
Removing loading docs and passing them as static props to the workbench since we now have proper support for loading mdx dynamically.
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
/*
|
|
* This page is auto-generated. Do not edit it by hand.
|
|
*/
|
|
import { Bent } from 'designs/bent/src/index.mjs'
|
|
// Dependencies
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
|
import { nsMerge } from 'shared/utils.mjs'
|
|
// Components
|
|
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
|
import { Workbench, ns as wbNs } from 'shared/components/workbench/new.mjs'
|
|
import { WorkbenchLayout } from 'site/components/layouts/workbench.mjs'
|
|
|
|
// Translation namespaces used on this page
|
|
const ns = nsMerge('bent', wbNs, pageNs)
|
|
|
|
const NewBentPage = ({ page, docs }) => (
|
|
<PageWrapper {...page} title="Bent" layout={WorkbenchLayout} header={null}>
|
|
<Workbench
|
|
{...{
|
|
design: 'bent',
|
|
Design: Bent,
|
|
docs,
|
|
}}
|
|
/>
|
|
</PageWrapper>
|
|
)
|
|
|
|
export default NewBentPage
|
|
|
|
export async function getStaticProps({ locale }) {
|
|
return {
|
|
props: {
|
|
...(await serverSideTranslations(locale, ns)),
|
|
page: {
|
|
locale,
|
|
path: ['new', 'bent'],
|
|
title: 'Bent',
|
|
},
|
|
},
|
|
}
|
|
}
|