import type { Metadata } from "next"; import { RedeemCode } from "@/components/RedeemCode"; import { requireMe } from "@/lib/server"; export const metadata: Metadata = { title: "Promókód beváltása", robots: { index: false } }; type Props = { searchParams: Promise<{ kod?: string }> }; /** Redeeming a promo code; `?kod=` fills it in (links in invitations). */ export default async function RedeemPage({ searchParams }: Props) { const { kod } = await searchParams; await requireMe(kod ? `/bevaltas?kod=${encodeURIComponent(kod)}` : "/bevaltas"); return (
Promókód

Promókód beváltása

Írd be a kapott kódot. Az egyenlegedet azonnal feltöltjük a csomag szintjéig: amit már elhasználtál belőle, visszakapod, ami ennél több van, megmarad. Egy kód egyszer váltható be.

); }