mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
35 lines
755 B
JavaScript
35 lines
755 B
JavaScript
|
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)
|