import { UserProfile } from "./Auth"; interface ProfileModalProps { isOpen: boolean; onClose: () => void; } export default function ProfileModal({ isOpen, onClose }: ProfileModalProps) { if (!isOpen) return null; return (
{ if (e.key === "Escape") onClose(); }} >
e.stopPropagation()} onKeyDown={(e) => e.stopPropagation()} >
); }