"use client"; import { motion } from "framer-motion"; import { Activity, Droplets, MapPin, Thermometer } from "lucide-react"; import type { HydroStation } from "@/types/imgw"; import { formatDateTime, formatFlow, formatTemperature, formatWaterLevel } from "@/lib/weather-utils"; import { Card } from "@/components/ui/card"; export function HydroStationCard({ station, index = 0 }: { station: HydroStation; index?: number }) { return (

{station.name}

{station.river ?? "Rzeka: brak danych"}{station.province ? ` · ${station.province}` : ""}

Pomiar poziomu: {formatDateTime(station.waterLevelMeasuredAt)}

); } function HydroMetric({ icon: Icon, label, value }: { icon: typeof Droplets; label: string; value: string }) { return (

{label}

{value}

); }