import React from 'react' import { connect } from 'react-redux' import cn from 'classnames' import stl from './widgetHolder.module.css' import LazyLoad from 'react-lazyload'; const WidgetHolder = props => { const { comparing, Component, period, periodCompare, fullWidth = false } = props; const showSync = comparing && period.rangeName === periodCompare.rangeName; return (
{} {comparing && (
)}
) } export default connect(state => ({ comparing: state.getIn([ 'dashboard', 'comparing' ]), period: state.getIn([ 'dashboard', 'period' ]), periodCompare: state.getIn([ 'dashboard', 'periodCompare' ]) }))(WidgetHolder)