1 | import _extends from "@babel/runtime/helpers/esm/extends";
|
2 | import * as React from 'react';
|
3 | import SvgIcon from '../SvgIcon';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { jsx as _jsx } from "react/jsx-runtime";
|
9 | export default function createSvgIcon(path, displayName) {
|
10 | var Component = function Component(props, ref) {
|
11 | return _jsx(SvgIcon, _extends({
|
12 | "data-testid": "".concat(displayName, "Icon"),
|
13 | ref: ref
|
14 | }, props, {
|
15 | children: path
|
16 | }));
|
17 | };
|
18 |
|
19 | if (process.env.NODE_ENV !== 'production') {
|
20 |
|
21 |
|
22 | Component.displayName = "".concat(displayName, "Icon");
|
23 | }
|
24 |
|
25 | Component.muiName = SvgIcon.muiName;
|
26 | return React.memo( React.forwardRef(Component));
|
27 | } |
\ | No newline at end of file |