// @flow

import { connect } from 'react-redux'
import { compose } from 'recompose'
import { getEncryptedWIF } from '../../../modules/generateEncryptedWIF'

import EncryptQR from './EncryptQR'

const mapStateToProps = (state: Object) => ({
  encryptedWIF: getEncryptedWIF(state),
})

export default compose(connect(mapStateToProps))(EncryptQR)

// @flow

import { connect } from 'react-redux'
import { getEncryptedWIF } from '../../../modules/generateEncryptedWIF'
import EncryptQR from './EncryptQR'

const mapStateToProps = (state: Object) => ({
  encryptedWIF: getEncryptedWIF(state),
})

export default connect(
  mapStateToProps,
  (dispatch: Dispatch) => ({ dispatch }),
)(EncryptQR)

Fix yarn type annotation error
Fix yarn type annotation error
