1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 19:10:22 +01:00
metamask-extension/ui/app/components/pages/home/home.container.js

35 lines
755 B
JavaScript
Raw Normal View History

import Home from './home.component'
import { compose } from 'recompose'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
const mapStateToProps = state => {
const { metamask, appState } = state
const {
unapprovedTxs = {},
unapprovedMsgCount = 0,
unapprovedPersonalMsgCount = 0,
unapprovedTypedMessagesCount = 0,
noActiveNotices,
lostAccounts,
seedWords,
} = metamask
const { forgottenPassword } = appState
return {
unapprovedTxs,
unapprovedMsgCount,
unapprovedPersonalMsgCount,
unapprovedTypedMessagesCount,
noActiveNotices,
lostAccounts,
forgottenPassword,
seedWords,
}
}
export default compose(
withRouter,
connect(mapStateToProps)
)(Home)