"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.usePopup = void 0;
var _react = require("react");
const usePopup = () => {
  const [isOpen, setIsOpen] = (0, _react.useState)(false);
  const popupRef = (0, _react.useRef)(null);
  const toggle = () => setIsOpen(prev => !prev);
  return {
    isOpen,
    setIsOpen,
    toggle,
    popupRef
  };
};
exports.usePopup = usePopup;
//# sourceMappingURL=usePopup.js.map