// src/components/PopUpDetail.jsx import { useEffect, useRef } from 'react'; import { gsap } from 'gsap'; export default function PopUpDetail({ point, onClose }) { const modalRef = useRef(); useEffect(() => { if (point) { gsap.fromTo(modalRef.current, { opacity: 0, scale: 0.8 }, { opacity: 1, scale: 1, duration: 0.5, ease: "back.out(1.7)" } ); } }, [point]); if (!point) return null; return ( // DaisyUI modal component
Type: {point.type === 'news' ? 'News Region' : 'Statistics Region'}
No specific updates available.
)}