1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00
metamask-extension/ui/app/pages/first-time-flow/end-of-flow/end-of-flow.container.js

20 lines
543 B
JavaScript

import { connect } from 'react-redux'
import EndOfFlow from './end-of-flow.component'
import { getOnboardingInitiator } from '../../../selectors'
const firstTimeFlowTypeNameMap = {
create: 'New Wallet Created',
'import': 'New Wallet Imported',
}
const mapStateToProps = (state) => {
const { metamask: { firstTimeFlowType } } = state
return {
completionMetaMetricsName: firstTimeFlowTypeNameMap[firstTimeFlowType],
onboardingInitiator: getOnboardingInitiator(state),
}
}
export default connect(mapStateToProps)(EndOfFlow)