1 | import _extends from "@babel/runtime/helpers/esm/extends";
|
2 | import React from 'react';
|
3 | import SvgIcon from '../SvgIcon';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export default function createSvgIcon(path, displayName) {
|
9 | const Component = (props, ref) => React.createElement(SvgIcon, _extends({
|
10 | ref: ref
|
11 | }, props), path);
|
12 |
|
13 | if (process.env.NODE_ENV !== 'production') {
|
14 |
|
15 |
|
16 | Component.displayName = `${displayName}Icon`;
|
17 | }
|
18 |
|
19 | Component.muiName = SvgIcon.muiName;
|
20 | return React.memo( React.forwardRef(Component));
|
21 | } |
\ | No newline at end of file |