"use client"; import type { Units } from "@/lib/display"; import { sectionHeading } from "@/lib/styles"; import type { WeatherReport } from "@/lib/weather/types"; import { ChoiceChips } from "../ui/ChoiceChips"; import { DailyView } from "./DailyView"; import { HourlyView } from "./HourlyView"; export type ForecastView = "hourly" | "daily"; /** The forecast section with a switch between the hourly and daily views. */ export function ForecastPanel({ report, units, view, onViewChange, providerLabel, maxDaysOnPlan }: { report: WeatherReport; units: Units; view: ForecastView; onViewChange: (view: ForecastView) => void; providerLabel: string; maxDaysOnPlan: number; }) { return (

The days ahead

{view === "hourly" ? ( ) : ( )}
); }