1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-18 15:33:21 +01:00
metamask-extension/ui/app/pages/send/send-content/add-recipient/ens-input.container.js
2020-11-02 17:41:28 -06:00

19 lines
471 B
JavaScript

import { connect } from 'react-redux'
import {
getCurrentNetwork,
getSendTo,
getSendToNickname,
getAddressBookEntry,
} from '../../../../selectors'
import EnsInput from './ens-input.component'
export default connect((state) => {
const selectedAddress = getSendTo(state)
return {
network: getCurrentNetwork(state),
selectedAddress,
selectedName: getSendToNickname(state),
contact: getAddressBookEntry(state, selectedAddress),
}
})(EnsInput)