"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"; export function FavoritesSection({ stations }: { stations: SynopStation[] }) { const favoriteIds = useWeatherStore((state) => state.favorites); const favorites = stations.filter((station) => favoriteIds.includes(station.id)); if (!favorites.length) return ( Ulubione lokalizacje Dodaj stacje do ulubionych, aby mieć ich odczyty pod ręką. ); return ( Ulubione lokalizacje {favorites.map((station, index) => )} ); }
Dodaj stacje do ulubionych, aby mieć ich odczyty pod ręką.