mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
22 lines
506 B
JavaScript
22 lines
506 B
JavaScript
|
import { connect } from 'react-redux'
|
||
|
import MenuBar from './menu-bar.component'
|
||
|
import { showSidebar, hideSidebar } from '../../actions'
|
||
|
|
||
|
const mapStateToProps = state => {
|
||
|
const { appState: { sidebarOpen, isMascara } } = state
|
||
|
|
||
|
return {
|
||
|
sidebarOpen,
|
||
|
isMascara,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const mapDispatchToProps = dispatch => {
|
||
|
return {
|
||
|
showSidebar: () => dispatch(showSidebar()),
|
||
|
hideSidebar: () => dispatch(hideSidebar()),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default connect(mapStateToProps, mapDispatchToProps)(MenuBar)
|