mango-v4-ui/pages/search.tsx

44 lines
1.2 KiB
TypeScript
Raw Normal View History

2023-01-10 18:46:18 -08:00
import SearchPage from '@components/search/SearchPage'
2022-11-27 01:21:38 -08: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-11-27 01:21:38 -08:00
export async function getStaticProps({ locale }: { locale: string }) {
return {
props: {
2023-01-10 18:46:18 -08:00
...(await serverSideTranslations(locale, [
'account',
2023-12-02 03:55:19 -08:00
'close-account',
2023-01-10 18:46:18 -08:00
'common',
'notifications',
2023-11-14 19:24:22 -08:00
'onboarding',
2023-01-10 18:46:18 -08:00
'profile',
'search',
'settings',
2023-01-10 18:46:18 -08:00
])),
2022-11-27 01:21:38 -08:00
},
}
}
2023-12-12 18:58:35 -08:00
const metaTitle = 'Search Accounts | Mango Markets'
const metaDescription =
'Trading accounts on Mango can be viewed via search. You can view and follow accounts to learn from their trading strategies.'
2022-11-27 01:21:38 -08:00
const Search: NextPage = () => {
2023-12-12 18:58:35 -08:00
return (
<>
<Head>
<title>Search Accounts | 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>
<SearchPage />
</>
)
2022-11-27 01:21:38 -08:00
}
export default Search