"use client";
import { useState } from "react";
import Image from "next/image";
import { Button } from "@heroui/react";
import { useApp } from "@/contexts/AppContext";
import { buttonStyles } from "@/lib/buttonStyles";
export default function WithdrawPanel() {
const { t } = useApp();
const [amount, setAmount] = useState("45230");
return (
{/* Token Balance & Supplied */}
{/* Token Balance */}
{t("supply.tokenBalance")}
45,230.00
JLP
$45,230.00
{/* Supplied */}
{t("supply.supplied")}
0.00
USDC
$0.00
{/* Withdraw Section */}
{/* Withdraw Label and Available */}
{t("supply.withdraw")}
45,230.00 USDC
{/* Input Row */}
{/* USDC Token Button */}
USDC
{/* Amount Input */}
setAmount(e.target.value)}
placeholder="0"
className="text-heading-h3 font-bold text-text-primary dark:text-white leading-[130%] tracking-[-0.005em] text-right bg-transparent outline-none w-24"
/>
≈ $1233.00 USD
{/* Health Factor */}
{t("supply.healthFactor")}
0% {t("supply.utilization")}
{t("supply.safe")}
{/* Progress Bar */}
{/* Estimated Returns */}
{t("supply.estimatedReturns")}
{t("supply.estApy")}
22%
{t("supply.estReturnsYear")}
~ $0.50
{/* Withdraw Button */}
}>
{t("supply.withdraw")}
);
}