"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"; import { useI18n } from "@/lib/i18n"; export function HydroStationCard({ station, index = 0 }: { station: HydroStation; index?: number }) { const { language, t } = useI18n(); return (

{station.name}

{station.river ?? t("hydro.riverUnavailable")}{station.province ? ` ยท ${station.province}` : ""}

{t("hydro.levelMeasurement", { date: formatDateTime(station.waterLevelMeasuredAt, language) })}

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

{label}

{value}

); }