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