import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from "react";
import { jsx } from "react/jsx-runtime";
import SvgIcon from "../SvgIcon/SvgIcon.js";
function createSvgIcon(path, displayName) {
  function Component(props, ref) {
    return /* @__PURE__ */ jsx(SvgIcon, _extends({
      "data-testid": `${displayName}Icon`,
      ref
    }, props, {
      children: path
    }));
  }
  if (process.env.NODE_ENV !== "production") {
    Component.displayName = `${displayName}Icon`;
  }
  Component.muiName = SvgIcon.muiName;
  return /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef(Component));
}
export {
  createSvgIcon as default
};
