"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const reactIdentity = require("@contember/react-identity");
const useIdentity = () => {
  const identity = reactIdentity.useIdentity();
  if (!identity) {
    throw new Error("Identity context is not initialized");
  }
  return identity;
};
exports.useIdentity = useIdentity;
//# sourceMappingURL=useIdentity.cjs.map
