
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 { Diana } from 'designs/diana/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('diana', wbNs, pageNs)
|
|
|
|
const NewDianaPage = ({ page, docs }) => (
|
|
<PageWrapper {...page} title="Diana" layout={WorkbenchLayout} header={null}>
|
|
<Workbench
|
|
{...{
|
|
design: 'diana',
|
|
Design: Diana,
|
|
docs,
|
|
}}
|
|
/>
|
|
</PageWrapper>
|
|
)
|
|
|
|
export default NewDianaPage
|
|
|
|
export async function getStaticProps({ locale }) {
|
|
return {
|
|
props: {
|
|
...(await serverSideTranslations(locale, ns)),
|
|
page: {
|
|
locale,
|
|
path: ['new', 'diana'],
|
|
title: 'Diana',
|
|
},
|
|
},
|
|
}
|
|
}
|