import { debounce } from 'lodash'; import { connect } from 'react-redux'; import { lookupEnsName, initializeEnsSlice, resetResolution, } from '../../../../ducks/ens'; import EnsInput from './ens-input.component'; function mapDispatchToProps(dispatch) { return { lookupEnsName: debounce((ensName) => dispatch(lookupEnsName(ensName)), 150), initializeEnsSlice: () => dispatch(initializeEnsSlice()), resetEnsResolution: debounce(() => dispatch(resetResolution()), 300), }; } export default connect(null, mapDispatchToProps)(EnsInput);