"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const reactBinding = require("@contember/react-binding");
const getDiscriminatedDatum = (data, discriminant) => {
  const discriminantValue = discriminant instanceof reactBinding.FieldAccessor ? discriminant.value : discriminant;
  return data.get(discriminantValue);
};
exports.getDiscriminatedDatum = getDiscriminatedDatum;
//# sourceMappingURL=getDiscriminatedDatum.cjs.map
