mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 05:12:18 +01:00
20 lines
543 B
JavaScript
20 lines
543 B
JavaScript
import { connect } from 'react-redux'
|
|
import { getOnboardingInitiator } from '../../../selectors'
|
|
import EndOfFlow from './end-of-flow.component'
|
|
|
|
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)
|