redeem.tsx26 lines · main
| 1 | import Head from 'next/head' |
| 2 | import { useRouter } from 'next/router' |
| 3 | |
| 4 | import { RedeemCreditsScreen } from '@/components/interfaces/RedeemCredits/RedeemCredits' |
| 5 | import { withAuth } from '@/hooks/misc/withAuth' |
| 6 | import { buildStudioPageTitle } from '@/lib/page-title' |
| 7 | import type { NextPageWithLayout } from '@/types' |
| 8 | |
| 9 | const PAGE_TITLE = buildStudioPageTitle({ section: 'Redeem Credits', brand: 'Briven' }) |
| 10 | |
| 11 | const RedeemCreditsPage: NextPageWithLayout = () => { |
| 12 | const router = useRouter() |
| 13 | |
| 14 | if (!router.isReady) return null |
| 15 | |
| 16 | return ( |
| 17 | <> |
| 18 | <Head> |
| 19 | <title>{PAGE_TITLE}</title> |
| 20 | </Head> |
| 21 | <RedeemCreditsScreen /> |
| 22 | </> |
| 23 | ) |
| 24 | } |
| 25 | |
| 26 | export default withAuth(RedeemCreditsPage) |