2021-02-04 19:15:23 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import FirstTimeFlowSwitch from './first-time-flow-switch.component';
|
2019-01-23 16:25:34 +01:00
|
|
|
|
|
|
|
const mapStateToProps = ({ metamask }) => {
|
2020-11-10 22:27:08 +01:00
|
|
|
const {
|
|
|
|
completedOnboarding,
|
|
|
|
isInitialized,
|
|
|
|
isUnlocked,
|
|
|
|
seedPhraseBackedUp,
|
2021-02-04 19:15:23 +01:00
|
|
|
} = metamask;
|
2019-01-23 16:25:34 +01:00
|
|
|
|
|
|
|
return {
|
|
|
|
completedOnboarding,
|
|
|
|
isInitialized,
|
2020-11-09 14:50:24 +01:00
|
|
|
isUnlocked,
|
2020-11-10 22:27:08 +01:00
|
|
|
seedPhraseBackedUp,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|
2019-01-23 16:25:34 +01:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
export default connect(mapStateToProps)(FirstTimeFlowSwitch);
|