import * as u from "react";
import p from "./useEntities.mjs";
function m(t, e) {
  var r = u.useMemo(function() {
    return e || [];
  }, [e]), n = p(r, t), a = u.useCallback(function(o) {
    var i = n();
    return o.map(function(s) {
      var f = i[s].nodes;
      return f.map(function(c) {
        return c[t.value];
      });
    });
  }, [n, t]);
  return [r, n, a];
}
export {
  m as default
};
