"use client"; import { MapPinned } from "lucide-react"; import { useWeatherStore } from "@/lib/store"; import { formatTemperature, getWeatherMoodFromData } from "@/lib/weather-utils"; import { useI18n } from "@/lib/i18n"; import type { SynopStation } from "@/types/imgw"; import { WeatherIcon } from "@/components/weather/weather-icon"; import { cn } from "@/lib/utils"; const featuredNames = ["Warszawa", "Kraków", "Gdańsk", "Wrocław", "Poznań", "Zakopane"]; export function FeaturedStationsSection({ stations }: { stations: SynopStation[] }) { const { language, t } = useI18n(); const selectedStationId = useWeatherStore((state) => state.selectedStationId); const selectStation = useWeatherStore((state) => state.selectStation); const featured = featuredNames.flatMap((name) => stations.find((station) => station.name === name) ?? []); return (

{t("featured.label")}

{t("featured.title")}

{featured.map((station) => { const active = selectedStationId === station.id; return ( ); })}
); }