import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '@material-ui/core/SvgIcon';

const SvgIconCustom = typeof global !== 'undefined' && global.__MUI_SvgIcon__ || SvgIcon;

function createSvgIcon(path, displayName) {
  let Icon = props => (
    <SvgIconCustom {...props}>
      {path}
    </SvgIconCustom>
  );

  Icon.displayName = displayName;
  Icon = pure(Icon);
  Icon.muiName = 'SvgIcon';

  return Icon;
};

export default createSvgIcon;

@@ -109,99 +109,8 @@
 ';%0A%0A
-const SvgIconCustom = typeof global !== 'undefined' && global.__MUI_SvgIcon__ %7C%7C SvgIcon;%0A%0A
 func
@@ -185,22 +185,16 @@
 %3CSvgIcon
-Custom
  %7B...pro
@@ -228,14 +228,8 @@
 Icon
-Custom
 %3E%0A  

Remove deadcode (#11400)