2022-06-20 18:31:22 +02:00
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
2023-02-05 18:44:54 +01:00
|
|
|
import { Pattern } from 'design/src/index.mjs'
|
|
|
|
import { useApp } from 'site/hooks/useApp.mjs'
|
|
|
|
import { PageWrapper } from 'site/components/wrappers/page.mjs'
|
|
|
|
import { LabLayout } from 'site/components/layouts/lab.mjs'
|
|
|
|
import { WorkbenchWrapper } from 'shared/components/wrappers/workbench.mjs'
|
2022-06-20 18:31:22 +02:00
|
|
|
|
2023-02-05 19:58:25 +01:00
|
|
|
const WorkbenchPage = () => {
|
2022-06-20 18:31:22 +02:00
|
|
|
const app = useApp()
|
|
|
|
|
|
|
|
return (
|
2023-02-05 18:44:54 +01:00
|
|
|
<PageWrapper app={app}>
|
|
|
|
<WorkbenchWrapper {...{ app, design: Pattern, layout: LabLayout }} />
|
|
|
|
</PageWrapper>
|
2022-06-20 18:31:22 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default WorkbenchPage
|
|
|
|
|
|
|
|
export async function getStaticProps({ locale }) {
|
|
|
|
return {
|
|
|
|
props: {
|
|
|
|
...(await serverSideTranslations(locale)),
|
2022-10-06 14:15:13 +02:00
|
|
|
},
|
2022-06-20 18:31:22 +02:00
|
|
|
}
|
|
|
|
}
|