michaltakac/mathworldvr

View on GitHub
src/containers/AttentionBox/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import { connect } from 'react-redux'
import { AttentionBox } from 'components'
import { uiAttentionboxToggle } from 'actions'

const mapStateToProps = (state) => ({
  attentionBoxVisible: state.ui.attentionBoxVisible,
})
const mapDispatchToProps = (dispatch) => ({
  toggleAttentionBox: () => dispatch(uiAttentionboxToggle()),
})

export default connect(mapStateToProps, mapDispatchToProps)(AttentionBox)