import React from "react";
const PluginProviders = ({ plugins, children }) => {
  const providers = plugins.getPluginProviders();
  if (providers.length === 0) {
    return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
  }
  return providers.reduce(
    (wrappedChildren, Provider) => /* @__PURE__ */ React.createElement(Provider, { plugins }, wrappedChildren),
    children
  );
};
export {
  PluginProviders
};
//# sourceMappingURL=plugin-providers.js.map
