2022-09-12 08:53:57 -07:00
|
|
|
import type { NextPage } from 'next'
|
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
2022-09-14 18:06:00 -07:00
|
|
|
import SwapPage from '../components/swap/SwapPage'
|
2022-09-12 08:53:57 -07:00
|
|
|
|
|
|
|
export async function getStaticProps({ locale }: { locale: string }) {
|
|
|
|
return {
|
|
|
|
props: {
|
2022-09-27 20:07:26 -07:00
|
|
|
...(await serverSideTranslations(locale, [
|
|
|
|
'common',
|
2022-11-12 02:26:43 -08:00
|
|
|
'onboarding',
|
2022-10-04 20:35:54 -07:00
|
|
|
'onboarding-tours',
|
2022-09-27 20:07:26 -07:00
|
|
|
'profile',
|
2023-01-10 18:46:18 -08:00
|
|
|
'search',
|
2022-12-16 03:26:42 -08:00
|
|
|
'settings',
|
2022-09-27 20:07:26 -07:00
|
|
|
'swap',
|
|
|
|
'settings',
|
2022-10-06 20:16:11 -07:00
|
|
|
'trade',
|
2023-01-26 01:56:32 -08:00
|
|
|
'close-account',
|
2022-09-27 20:07:26 -07:00
|
|
|
])),
|
2022-09-12 08:53:57 -07:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-14 18:06:00 -07:00
|
|
|
const Swap: NextPage = () => {
|
2022-09-13 23:24:26 -07:00
|
|
|
return (
|
2023-01-18 02:36:45 -08:00
|
|
|
<div className="pb-20 md:pb-0">
|
2022-09-14 18:06:00 -07:00
|
|
|
<SwapPage />
|
2022-09-13 23:24:26 -07:00
|
|
|
</div>
|
|
|
|
)
|
2022-09-12 08:53:57 -07:00
|
|
|
}
|
|
|
|
|
2022-09-14 18:06:00 -07:00
|
|
|
export default Swap
|