import { __assign as v } from "../../../../../tslib/tslib.es6.es.js";
import * as l from "react";
import { useContext as c } from "react";
import { env as d } from "../../utils/process.es.js";
import { featureDefinitions as m } from "./definitions.es.js";
import { invariant as h } from "../../../../../hey-listen/dist/hey-listen.es.es.js";
import { LazyContext as y } from "../../context/LazyContext.es.js";
var f = Object.keys(m), k = f.length;
function E(r, t, s) {
  var o = [], u = c(y);
  if (!t)
    return null;
  d !== "production" && s && u.strict && h(!1, "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");
  for (var e = 0; e < k; e++) {
    var n = f[e], a = m[n], p = a.isEnabled, i = a.Component;
    p(r) && i && o.push(l.createElement(i, v({ key: n }, r, { visualElement: t })));
  }
  return o;
}
export {
  E as useFeatures
};
//# sourceMappingURL=use-features.es.js.map
