"use client"; import { useState } from "react"; import Image from "next/image"; import { useApp } from "@/contexts/AppContext"; export default function MintSwapPanel() { const { t } = useApp(); const [activeMode, setActiveMode] = useState<"mint" | "swap">("mint"); const [activeAction, setActiveAction] = useState<"deposit" | "withdraw">("deposit"); return (
{/* Mint/Swap Tabs */}
{/* Content */}
{/* Deposit/Withdraw Toggle */}
{/* Input Area */}
{/* Label and Balance */}
{t("mintSwap.deposit")}
{t("mintSwap.balance")}: $12,500.00
{/* Input Row */}
0.00 --
{/* Estimated Returns */}
{t("mintSwap.estimatedReturns")}
{t("mintSwap.estAPY")} 22%
{t("mintSwap.estReturns")} ~ $0.50
{/* Transaction Summary */}
{t("mintSwap.transactionSummary")}
{t("mintSwap.youGet")} 9852.21 GYUS
{t("mintSwap.salesPrice")} $1.04 USDC
{t("mintSwap.fee")} -$50 (0.5%)
{t("mintSwap.gas")} -$0.09
{/* Submit Button */} {/* Terms */}
{t("mintSwap.termsText")}{" "} {t("mintSwap.termsOfService")} {" "}{t("mintSwap.and")}
{t("mintSwap.privacyPolicy")}
); }