1
0
Fork 0
freesewing/sites/org/pages/welcome/bio.js

36 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-01-26 19:31:23 +01:00
import Page from 'site/components/wrappers/page.js'
import useApp from 'site/hooks/useApp.js'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
import { useTranslation } from 'next-i18next'
import Layout from 'site/components/layouts/bare'
import AuthWrapper, { namespaces as authNs } from 'site/components/wrappers/auth/index.js'
import BioSettings, { namespaces as bioNs } from 'site/components/account/bio/index.js'
// Translation namespaces used on this page
const namespaces = [...bioNs, ...authNs]
const BioPage = (props) => {
const app = useApp(props)
const { t } = useTranslation(namespaces)
return (
<Page app={app} title={t('title')} layout={Layout} footer={false}>
<AuthWrapper app={app}>
<div className="m-auto max-w-lg text-center lg:mt-12 p-8">
<BioSettings app={app} title welcome />
</div>
</AuthWrapper>
</Page>
)
}
export default BioPage
export async function getStaticProps({ locale }) {
return {
props: {
...(await serverSideTranslations(locale)),
},
}
}