import { useControlledState as a } from "../../utils/dist/module.es.js";
function r(t) {
  let [n, e] = a(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
  return {
    isOpen: n,
    setOpen: e,
    open() {
      e(!0);
    },
    close() {
      e(!1);
    },
    toggle() {
      e(!n);
    }
  };
}
export {
  r as useOverlayTriggerState
};
//# sourceMappingURL=module.es.js.map
