mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-18 15:33:21 +01:00
19 lines
471 B
JavaScript
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)
|