import React, { Fragment } from 'react'; import cx from 'classnames'; import { styles } from './styles'; const SLOW_CONNECTIONS_TYPES = { critical: { level: styles.bad, bars: styles.oneBar, }, danger: { level: styles.bad, bars: styles.twoBars, }, warning: { level: styles.warning, bars: styles.threeBars, }, }; const SlowConnection = ({ children, effectiveConnectionType, iconOnly }) => (
{!iconOnly ? ({children}) : null} ); export default SlowConnection;