"use client"; import { Heart } from "lucide-react"; import { useWeatherStore } from "@/lib/store"; import type { SynopStation } from "@/types/imgw"; import { StationCard } from "@/components/weather/station-card"; import { useI18n } from "@/lib/i18n"; export function FavoritesSection({ stations }: { stations: SynopStation[] }) { const { t } = useI18n(); const favoriteIds = useWeatherStore((state) => state.favorites); const favorites = stations.filter((station) => favoriteIds.includes(station.id)); if (!favorites.length) return ( {t("favorites.title")} {t("favorites.empty")} ); return ( {t("favorites.title")} {favorites.map((station, index) => )} ); }
{t("favorites.empty")}