import { memo as w, forwardRef as N } from '../../../preact/compat/dist/compat.module.mjs';
import { jsx as u } from '../../../preact/jsx-runtime/dist/jsxRuntime.module.mjs';
import SvgIcon from '../SvgIcon/SvgIcon.mjs';

function createSvgIcon(path, displayName) {
  function Component(props, ref) {
    return /*#__PURE__*/u(SvgIcon, {
      "data-testid": `${displayName}Icon`,
      ref: ref,
      ...props,
      children: path
    });
  }
  Component.muiName = SvgIcon.muiName;
  return /*#__PURE__*/w(/*#__PURE__*/N(Component));
}

export { createSvgIcon as default };
//# sourceMappingURL=createSvgIcon.mjs.map
