2022-10-08 04:37:08 -07:00
|
|
|
import StatsPage from '@components/stats/StatsPage'
|
2022-08-23 15:33:09 -07:00
|
|
|
import type { NextPage } from 'next'
|
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
2023-12-12 18:58:35 -08:00
|
|
|
import Head from 'next/head'
|
2022-08-23 15:33:09 -07:00
|
|
|
|
|
|
|
export async function getStaticProps({ locale }: { locale: string }) {
|
|
|
|
return {
|
|
|
|
props: {
|
2022-11-12 02:26:43 -08:00
|
|
|
...(await serverSideTranslations(locale, [
|
2023-12-06 19:54:53 -08:00
|
|
|
'account',
|
2023-04-27 05:11:20 -07:00
|
|
|
'activity',
|
2023-12-02 03:55:19 -08:00
|
|
|
'close-account',
|
2022-11-12 02:26:43 -08:00
|
|
|
'common',
|
2023-04-21 07:23:27 -07:00
|
|
|
'notifications',
|
2022-11-12 02:26:43 -08:00
|
|
|
'onboarding',
|
|
|
|
'profile',
|
2023-01-10 18:46:18 -08:00
|
|
|
'search',
|
2022-12-16 03:26:42 -08:00
|
|
|
'settings',
|
2023-05-02 18:00:32 -07:00
|
|
|
'stats',
|
2022-11-12 02:26:43 -08:00
|
|
|
'token',
|
2022-12-14 03:01:15 -08:00
|
|
|
'trade',
|
2022-11-12 02:26:43 -08:00
|
|
|
])),
|
2022-08-23 15:33:09 -07:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-12 18:58:35 -08:00
|
|
|
const metaTitle = 'Stats | TVL, Volume, Fees and More'
|
|
|
|
const metaDescription = 'All the stats you need to keep track of Mango v4.'
|
|
|
|
|
2022-08-23 15:33:09 -07:00
|
|
|
const Stats: NextPage = () => {
|
2023-12-12 18:58:35 -08:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Head>
|
|
|
|
<title>Stats | 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>
|
|
|
|
<StatsPage />
|
|
|
|
</>
|
|
|
|
)
|
2022-08-23 15:33:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Stats
|