redeem.tsx 694 B

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