import t, { useContext as l, createContext as o } from "react";
let n = o(null);
n.displayName = "OpenClosedContext";
var s = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(s || {});
function i() {
  return l(n);
}
function u({ value: e, children: r }) {
  return t.createElement(n.Provider, { value: e }, r);
}
function d({ children: e }) {
  return t.createElement(n.Provider, { value: null }, e);
}
export {
  u as OpenClosedProvider,
  d as ResetOpenClosedProvider,
  s as State,
  i as useOpenClosed
};
