"use client"; import { useTranslations } from "next-intl"; import { authClient } from "@/lib/auth-client"; import { TOPUP_PRODUCTS } from "@/lib/polar-products"; import { toast } from "@/lib/toast"; export function TopupPanel() { const t = useTranslations('toasts'); async function handleTopup(polarProductId: string) { toast.info( t('billing.redirectingToCheckoutTitle'), t('billing.redirectingToCheckoutDesc'), ); await authClient.checkout({ products: [polarProductId] }); } return (

Quick top-up

{TOPUP_PRODUCTS.map((product) => ( ))}

Angezeigt werden nur kaufbare Top-up Pakete aus der serverseitigen Polar-Produktkonfiguration.

); }