import { useRef as r, useEffect as s } from "react";
function f(n) {
  const e = r(n);
  e.current = n, s(() => {
    const t = window.minisEvents.on("APP_STATE_CHANGE", (o) => {
      e.current(o);
    });
    return () => window.minisEvents.off(t);
  }, []);
}
export {
  f as useOnAppStateChange
};
//# sourceMappingURL=useOnAppStateChange.js.map
