UNPKG

@material-ui/lab

Version:

Material-UI Lab - Incubator for Material-UI React components.

17 lines (15 loc) 550 B
import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from 'react'; import SvgIcon from '@material-ui/core/SvgIcon'; export default function createSvgIcon(path, displayName) { var Component = React.memo(React.forwardRef(function (props, ref) { return /*#__PURE__*/React.createElement(SvgIcon, _extends({ ref: ref }, props), path); })); if (process.env.NODE_ENV !== 'production') { Component.displayName = "".concat(displayName, "Icon"); } Component.muiName = SvgIcon.muiName; return Component; }