import RewardsPage from '@components/rewards/RewardsPage' import mangoStore from '@store/mangoStore' import { useIsWhiteListed } from 'hooks/useIsWhiteListed' import type { NextPage } from 'next' import { serverSideTranslations } from 'next-i18next/serverSideTranslations' import Head from 'next/head' export async function getStaticProps({ locale }: { locale: string }) { return { props: { ...(await serverSideTranslations(locale, [ 'account', 'close-account', 'common', 'governance', 'notifications', 'onboarding', 'profile', 'rewards', 'search', 'settings', ])), }, } } const metaTitle = 'Rewards | Be Rewarded for Trading on Mango' const metaDescription = 'Earn crypto and NFT rewards every week for trading on Mango. Getting started is easy and all participants earn rewards.' const Rewards: NextPage = () => { const { data: isWhiteListed } = useIsWhiteListed() const themeData = mangoStore((s) => s.themeData) return ( <> Rewards | Mango Markets
{isWhiteListed ? : null}
) } export default Rewards