"use client"; import { motion, useReducedMotion } from "framer-motion"; const rainDrops = Array.from({ length: 32 }, (_, index) => ({ left: `${(index * 29 + 7) % 101}%`, delay: (index % 16) * 0.08, duration: 0.82 + (index % 5) * 0.1, lengthClass: index % 3 === 0 ? "h-16" : index % 3 === 1 ? "h-12" : "h-9", opacity: index % 3 === 0 ? 0.58 : index % 3 === 1 ? 0.48 : 0.36, })); const mistDrops = Array.from({ length: 18 }, (_, index) => ({ left: `${(index * 37 + 19) % 101}%`, delay: (index % 9) * 0.16, duration: 1.35 + (index % 4) * 0.12, })); const lightningBolts = [ "left-[68%] top-[12%] h-28 rotate-[12deg]", "left-[78%] top-[22%] h-20 rotate-[18deg]", ]; export function WeatherEffects({ precipitation10m, thunderstorm = false }: { precipitation10m?: number | null; thunderstorm?: boolean }) { const reduceMotion = useReducedMotion(); const isRaining = (precipitation10m ?? 0) > 0; return (
); }