"use client";
import * as React from "react";
import {
  subscribeOrganizationScopeChanged,
  getCurrentOrganizationScope,
  getCurrentOrganizationScopeVersion
} from "./organizationEvents.js";
function useOrganizationScopeVersion() {
  const [version, setVersion] = React.useState(getCurrentOrganizationScopeVersion);
  React.useEffect(() => {
    return subscribeOrganizationScopeChanged(() => {
      setVersion(getCurrentOrganizationScopeVersion());
    });
  }, []);
  return version;
}
function useOrganizationScopeDetail() {
  const [detail, setDetail] = React.useState(
    getCurrentOrganizationScope
  );
  React.useEffect(() => {
    return subscribeOrganizationScopeChanged((next) => {
      setDetail(next);
    });
  }, []);
  return detail;
}
export {
  useOrganizationScopeDetail,
  useOrganizationScopeVersion
};
//# sourceMappingURL=useOrganizationScope.js.map
