"use client"; import { useState } from "react"; import Sidebar from "@/components/layout/Sidebar"; import TopBar from "@/components/layout/TopBar"; import SupplyContent from "@/components/lending/supply/SupplyContent"; import SupplyPanel from "@/components/lending/supply/SupplyPanel"; import WithdrawPanel from "@/components/lending/supply/WithdrawPanel"; import { useRouter } from "next/navigation"; import { useApp } from "@/contexts/AppContext"; export default function SupplyPage() { const { t } = useApp(); const router = useRouter(); const [activeTab, setActiveTab] = useState<"supply" | "withdraw">("supply"); const handleBackToLending = () => { router.push("/lending"); }; const breadcrumbItems = [ { label: "ASSETX", href: "/" }, { label: t("nav.lending"), href: "/lending" }, { label: t("supply.supply") }, ]; return (
{/* Back to lending link */}
{/* Supply/Withdraw Buttons */}
{/* Supply Button */} {/* Withdraw Button */} {/* Sliding indicator line */}
{/* Divider Line */}
{/* Panel Content */}
{activeTab === "supply" ? : }
); }