2022-07-18 20:58:21 -07:00
|
|
|
import type { NextPage } from 'next'
|
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
2022-11-24 18:39:14 -08:00
|
|
|
import SettingsPage from '@components/settings/SettingsPage'
|
2022-07-18 20:58:21 -07:00
|
|
|
|
|
|
|
require('dayjs/locale/en')
|
|
|
|
require('dayjs/locale/es')
|
|
|
|
require('dayjs/locale/zh')
|
|
|
|
require('dayjs/locale/zh-tw')
|
|
|
|
|
|
|
|
export async function getStaticProps({ locale }: { locale: string }) {
|
|
|
|
return {
|
|
|
|
props: {
|
2022-09-26 03:46:16 -07:00
|
|
|
...(await serverSideTranslations(locale, [
|
|
|
|
'common',
|
2023-04-21 07:23:27 -07:00
|
|
|
'notifications',
|
2022-11-12 02:26:43 -08:00
|
|
|
'onboarding',
|
2022-09-26 03:46:16 -07:00
|
|
|
'profile',
|
2023-01-10 18:46:18 -08:00
|
|
|
'search',
|
2022-09-26 03:46:16 -07:00
|
|
|
'settings',
|
2023-06-24 05:44:15 -07:00
|
|
|
'trade',
|
2022-09-26 03:46:16 -07:00
|
|
|
])),
|
2022-07-18 20:58:21 -07:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const Settings: NextPage = () => {
|
|
|
|
return (
|
2022-09-19 03:43:38 -07:00
|
|
|
<div className="p-8 pb-20 md:pb-16 lg:p-10">
|
2022-11-24 18:39:14 -08:00
|
|
|
<SettingsPage />
|
2022-07-18 20:58:21 -07:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Settings
|