Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

543 B
Raw Blame
/* Copyright BoxLite AI, 2026 · SPDX-License-Identifier: AGPL-3.0 */
import { Navigate, useSearchParams } from 'react-router-dom'
import { RoutePath } from '@/enums/RoutePath'

/** A shareable coupon link (`/redeem?code=CODE`) opens the Wallet reward claim. */
export default function Redeem() {
  const [searchParams] = useSearchParams()
  const target = new URLSearchParams({ tab: 'wallet' })
  const code = searchParams.get('code')
  if (code) target.set('code', code)
  return <Navigate to={`${RoutePath.BILLING}?${target}`} replace />
}