'use client'; interface PricingCardProps { label: string; price: string; productId: string; discordId: string; highlight?: boolean; badge?: string; } export default function PricingCard({ label, price, productId, discordId, highlight, badge }: PricingCardProps) { const storeName = process.env.NEXT_PUBLIC_SELLAPP_STORE || 'YOUR_SELLAPP_STORE_NAME'; const handlePurchase = () => { // Build the Sell.app direct checkout URL with pre-filled Discord ID const checkoutUrl = `https://${storeName}.sell.app/product/${productId}?customFields[discord_id]=${encodeURIComponent(discordId)}`; window.open(checkoutUrl, '_blank'); }; return (
{badge && (
{badge}
)}
{label}
{price}
); }