"use client";
import { useState } from "react";
import { useApp } from "@/contexts/AppContext";
export default function APYHistoryCard() {
const { t } = useApp();
const [activeTab, setActiveTab] = useState<"apy" | "price">("apy");
// 橙色渐变条形图数据
const chartData = [
{ height: 85, color: "#ffe9dc" },
{ height: 93, color: "#ffc9ad" },
{ height: 100, color: "#ffc9ad" },
{ height: 105, color: "#ffba96" },
{ height: 108, color: "#ffa67e" },
{ height: 116, color: "#f48d5f" },
{ height: 124, color: "#ff6900" },
{ height: 127, color: "#f35b00" },
{ height: 139, color: "#d64700" },
];
return (
{/* Tabs */}
{/* Chart Area */}
{t("apy.lastDays")}
{/* Orange Gradient Chart */}
{chartData.map((bar, index) => (
))}
{/* Stats */}
{t("apy.highest")}
24.8%
{t("apy.lowest")}
18.2%
);
}