# All files / components/BandwidthThemeProvider BandwidthThemeProvider.js

0% Statements 0/18
0% Branches 0/4
0% Functions 0/2
0% Lines 0/9

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23

     import React from 'react';
    import PropTypes from 'prop-types';
    import { withProps } from 'recompose';
    import StyleRoot from 'components/BandwidthProvider/styles/StyleRoot';
    import irisTheme, { catapult as catapultTheme } from '../../theme';

    /**
     * @deprecated Please see [BandwidthProvider](/#!/BandwidthProvider)
     */
    const BandwidthThemeProvider = ({ children, theme }) => (
      <StyleRoot customTheme={theme}>{children}</StyleRoot>
    );

    BandwidthThemeProvider.defaultProps = {
      theme: irisTheme,
    };

    BandwidthThemeProvider.CatapultThemeProvider = withProps({
      theme: catapultTheme,
    })(BandwidthThemeProvider);

    export default BandwidthThemeProvider;