"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; model consensus below remains an explanation layer." : "LGBM 作为日内学习校准项;下方模型共识只保留为解释层。" : locale === "en-US" ? "Using the calibrated model distribution; model consensus below is for explanation only." : "使用校准后的模型分布;下方模型共识仅用于解释。"}