"use client"; import { useEffect, type ReactNode } from "react"; interface ModalProps { open: boolean; onClose: () => void; title: string; children: ReactNode; } export function Modal({ open, onClose, title, children }: ModalProps) { useEffect(() => { if (open) document.body.style.overflow = "hidden"; else document.body.style.overflow = ""; return () => { document.body.style.overflow = ""; }; }, [open]); if (!open) return null; return (