import {
  ModalContext
} from "./chunk-TBKQA5ZF.js";

// src/components/Modal/useModal.ts
import { useContext } from "react";
var useModal = () => {
  const { onClose, closeLabel, titleId, setTitleId } = useContext(ModalContext);
  return { onClose, closeLabel, titleId, setTitleId };
};

export {
  useModal
};
//# sourceMappingURL=chunk-Q5MIALGZ.js.map
