worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
26
node_modules/@mui/material/esm/utils/createSvgIcon.js
generated
vendored
Normal file
26
node_modules/@mui/material/esm/utils/createSvgIcon.js
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import SvgIcon from "../SvgIcon/index.js";
|
||||
|
||||
/**
|
||||
* Private module reserved for @mui packages.
|
||||
*/
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
export default function createSvgIcon(path, displayName) {
|
||||
function Component(props, ref) {
|
||||
return /*#__PURE__*/_jsx(SvgIcon, {
|
||||
"data-testid": process.env.NODE_ENV !== 'production' ? `${displayName}Icon` : undefined,
|
||||
ref: ref,
|
||||
...props,
|
||||
children: path
|
||||
});
|
||||
}
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
// Need to set `displayName` on the inner component for React.memo.
|
||||
// React prior to 16.14 ignores `displayName` on the wrapper.
|
||||
Component.displayName = `${displayName}Icon`;
|
||||
}
|
||||
Component.muiName = SvgIcon.muiName;
|
||||
return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue