"use client"; import type { ChartConfiguration } from "chart.js"; import clsx from "clsx"; import { startTransition, useMemo } from "react"; import { useChart } from "@/hooks/useChart"; import { useCityData, useDashboardStore } from "@/hooks/useDashboardStore"; import { useI18n } from "@/hooks/useI18n"; import { CityDetail, MarketScan, MarketTopBucket, ProbabilityBucket, } from "@/lib/dashboard-types"; import { getHeroMetaItems, getModelView, getProbabilityView, getRiskBadgeLabel, getTemperatureChartData, getWeatherSummary, } from "@/lib/dashboard-utils"; function EmptyState({ text }: { text: string }) { return (
{hasLgbmProbability ? locale === "en-US" ? "LGBM is the learned intraday adjustment; raw model points below are only diagnostic." : "LGBM 作为日内学习校准项;下方原始模型落点仅用于诊断。" : locale === "en-US" ? "Using the calibrated probability distribution; raw model points below are not probabilities." : "使用校准后的概率分布;下方原始模型落点不是概率。"}
{locale === "en-US" ? `Read-only comparison between model probability and executable ask; it does not place orders. Source: ${quoteSourceLabel}${lockAvailable ? ` · lock ${formatSignedPercent(lockEdge)}` : ""}.` : `只比较模型概率与可执行买价;系统不会下单。来源:${quoteSourceLabel}${lockAvailable ? ` · 锁价 ${formatSignedPercent(lockEdge)}` : ""}。`}