"use client"; import { motion, useReducedMotion } from "framer-motion"; import type { SynopStation, WeatherMood } from "@/types/imgw"; const windLines = Array.from({ length: 7 }, (_, index) => ({ top: `${18 + index * 11}%`, delay: index * 0.22, width: 70 + (index % 3) * 34, })); const stars = Array.from({ length: 16 }, (_, index) => ({ left: `${(index * 37 + 11) % 96}%`, top: `${(index * 23 + 8) % 72}%`, delay: (index % 6) * 0.35, })); const rainDrops = Array.from({ length: 22 }, (_, index) => ({ left: `${(index * 43 + 7) % 101}%`, delay: (index % 9) * 0.18, duration: 0.8 + (index % 4) * 0.14, })); export function WeatherEffects({ station, mood, precipitation10m, thunderstorm = false }: { station: SynopStation; mood: WeatherMood; precipitation10m?: number | null; thunderstorm?: boolean }) { const reduceMotion = useReducedMotion(); const isWindy = (station.windSpeed ?? 0) >= 8; const isRaining = (precipitation10m ?? 0) > 0; return (
); }