1
0
Fork 0
freesewing/sites/lab/pages/new/bee.mjs
Joost De Cock c74e3f4b66 chore(org/lab): Clean up leftover static docs loading
Removing loading docs and passing them as static props to the workbench
since we now have proper support for loading mdx dynamically.
2023-10-09 18:13:47 +02:00

41 lines
1 KiB
JavaScript

/*
* This page is auto-generated. Do not edit it by hand.
*/
import { Bee } from 'designs/bee/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('bee', wbNs, pageNs)
const NewBeePage = ({ page, docs }) => (
<PageWrapper {...page} title="Bee" layout={WorkbenchLayout} header={null}>
<Workbench
{...{
design: 'bee',
Design: Bee,
docs,
}}
/>
</PageWrapper>
)
export default NewBeePage
export async function getStaticProps({ locale }) {
return {
props: {
...(await serverSideTranslations(locale, ns)),
page: {
locale,
path: ['new', 'bee'],
title: 'Bee',
},
},
}
}