function mergeOuterLocalTheme(localTheme) {
      // To support composition of theme.
      if (typeof localTheme === 'function') {
         true ? (0, _warning.default)(this.outerTheme, ['Material-UI: you are providing a theme function property ' + 'to the MuiThemeProvider component:', '<MuiThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n')) : void 0;
        return localTheme(this.outerTheme);
      }

      if (!this.outerTheme) {
        return localTheme;
      }

      return (0, _objectSpread2.default)({}, this.outerTheme, localTheme);
    }
// Simple merge between the outer theme and the local theme
Simple merge between the outer theme and the local theme
Simple merge between the outer theme and the local theme
function mergeOuterLocalTheme(localTheme) {
      if (typeof localTheme === 'function') {
         true ? (0, _warning.default)(this.outerTheme, ['Material-UI: you are providing a theme function property ' + 'to the MuiThemeProvider component:', '<MuiThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n')) : void 0;
        return localTheme(this.outerTheme);
      }
      if (!this.outerTheme) {
        return localTheme;
      }
      return (0, _objectSpread2.default)({}, this.outerTheme, localTheme);
    }
function mergeOuterLocalTheme ( localTheme ) { if ( typeof localTheme === 'function' ) { true ? ( 0 , _warning . default ) ( this . outerTheme , [ 'Material-UI: you are providing a theme function property ' + 'to the MuiThemeProvider component:' , '<MuiThemeProvider theme={outerTheme => outerTheme} />' , '' , 'However, no outer theme is present.' , 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.' ] . join ( '\n' ) ) : void 0 ; return localTheme ( this . outerTheme ) ; } if ( ! this . outerTheme ) { return localTheme ; } return ( 0 , _objectSpread2 . default ) ( { } , this . outerTheme , localTheme ) ; }
Simple merge between the outer theme and the local theme
Simple merge between the outer theme and the local theme
// To support composition of theme.