"use client"; import Image from "next/image"; import { useApp } from "@/contexts/AppContext"; export default function LendingStats() { const { t } = useApp(); // Mini bar chart data (heights in percentage) const chartBars = [ { height: 40, color: "#f2fcf7" }, { height: 55, color: "#e1f8ec" }, { height: 45, color: "#cef3e0" }, { height: 65, color: "#b8ecd2" }, { height: 80, color: "#00ad76" }, { height: 95, color: "#10b981" }, ]; return (
{/* Left Section - USDC Borrowed and Avg. APY */}
{/* USDC Borrowed */}
{t("lending.usdcBorrowed")} $125.2M
+12% {t("lending.vsLastMonth")}
{/* Divider */}
{/* Avg. APY */}
{t("lending.avgApy")} 20.5%
{t("lending.stableYield")}
{/* Right Section - Mini Chart */}
{chartBars.map((bar, index) => (
))}
); }