"use client"; import type { useDashboardStore } from "@/hooks/useDashboardStore"; import type { useI18n } from "@/hooks/useI18n"; import type { getFutureModalView } from "@/lib/dashboard-utils"; import { FutureModelForecastPanel, FutureProbabilityPanel, FutureTemperaturePathChart, } from "./FutureForecastModalPanels"; type DashboardDetail = NonNullable< ReturnType["selectedDetail"] >; type FutureModalView = ReturnType; type TranslationFn = ReturnType["t"]; export function FutureForecastForwardView({ dateStr, detail, t, view, }: { dateStr: string; detail: DashboardDetail; t: TranslationFn; view: FutureModalView; }) { return ( <>
{t("future.targetForecast")} {view.forecastEntry?.max_temp ?? "--"} {detail.temp_symbol}
{t("future.deb")} {view.deb ?? "--"} {detail.temp_symbol}
{t("future.mu")} {view.mu != null ? `${view.mu.toFixed(1)}${detail.temp_symbol}` : "--"}
{t("future.score")} {view.front.score > 0 ? "+" : ""} {view.front.score}

{t("future.targetTempTrend")}

{t("future.probability")}

{t("future.models")}

); }