import { useState, useRef } from 'react';
export const usePopup = () => {
  const [isOpen, setIsOpen] = useState(false);
  const popupRef = useRef(null);
  const toggle = () => setIsOpen(prev => !prev);
  return {
    isOpen,
    setIsOpen,
    toggle,
    popupRef
  };
};
//# sourceMappingURL=usePopup.js.map