redeem.tsx26 lines · main
1import Head from 'next/head'
2import { useRouter } from 'next/router'
3
4import { RedeemCreditsScreen } from '@/components/interfaces/RedeemCredits/RedeemCredits'
5import { withAuth } from '@/hooks/misc/withAuth'
6import { buildStudioPageTitle } from '@/lib/page-title'
7import type { NextPageWithLayout } from '@/types'
8
9const PAGE_TITLE = buildStudioPageTitle({ section: 'Redeem Credits', brand: 'Briven' })
10
11const 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
26export default withAuth(RedeemCreditsPage)