"use client"; import { useState } from "react"; import Image from "next/image"; import { Button } from "@heroui/react"; import { useApp } from "@/contexts/AppContext"; interface BindInviteCardProps { placeholder?: string; onApply?: (code: string) => void; } export default function BindInviteCard({ placeholder, onApply, }: BindInviteCardProps) { const { t } = useApp(); const [code, setCode] = useState(""); const handleApply = () => { if (code.trim()) { onApply?.(code.trim()); } }; return (
{t("points.bindInviteDescription")}
{/* Input and Button */}