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'
|
2023-12-12 18:58:35 -08:00
|
|
|
import Head from 'next/head'
|
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, [
|
2023-07-27 21:00:51 -07:00
|
|
|
'account',
|
2023-12-02 03:55:19 -08:00
|
|
|
'close-account',
|
2022-09-27 20:07:26 -07:00
|
|
|
'common',
|
2023-04-21 07:23:27 -07:00
|
|
|
'notifications',
|
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',
|
2022-10-06 20:16:11 -07:00
|
|
|
'trade',
|
2022-09-27 20:07:26 -07:00
|
|
|
])),
|
2022-09-12 08:53:57 -07:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-12 18:58:35 -08:00
|
|
|
const metaTitle = 'Margin Swap | Swap x Leverage x Flashloans'
|
|
|
|
const metaDescription =
|
|
|
|
'The best swaps in crypto. Margin trade and token pair, set trigger orders and utilize all the liquidity on Solana.'
|
|
|
|
|
2022-09-14 18:06:00 -07:00
|
|
|
const Swap: NextPage = () => {
|
2022-09-13 23:24:26 -07:00
|
|
|
return (
|
2023-12-12 18:58:35 -08:00
|
|
|
<>
|
|
|
|
<Head>
|
|
|
|
<title>Margin Swap | Mango Markets</title>
|
|
|
|
<meta name="description" content={metaDescription} />
|
|
|
|
<meta property="og:title" content={metaTitle} />
|
|
|
|
<meta name="og:description" content={metaDescription} />
|
|
|
|
<meta name="twitter:title" content={metaTitle} />
|
|
|
|
<meta name="twitter:description" content={metaDescription} />
|
|
|
|
</Head>
|
2022-09-14 18:06:00 -07:00
|
|
|
<SwapPage />
|
2023-12-12 18:58:35 -08:00
|
|
|
</>
|
2022-09-13 23:24:26 -07:00
|
|
|
)
|
2022-09-12 08:53:57 -07:00
|
|
|
}
|
|
|
|
|
2022-09-14 18:06:00 -07:00
|
|
|
export default Swap
|