text: import { connect } from 'react-redux';
  // import { contactSlice } from '../../../Redux/contactsReducers/contactsReducers';
  import {
    // OnAddContact,
    memoizedGetContacts,
  } from '../../../Redux/contactsReducers/contactSelectors';
  import { postContacts } from '../../../Redux/contactsReducers/contactsOperators';
  import InputForm from './InputForm';
  import shortid from 'shortid';
  
  const mapStateToProps = state => ({
    contactState: memoizedGetContacts(state),
  });
  
  const mapDispatchToProps = dispatch => ({
    addContact: state =>
      dispatch(
        postContacts({
          ...state,
          id: shortid.generate(),
        }),
      ),
  });
  
  // const mapDispatchToProps = dispatch => ({
  //   addContact: (e, state) =>
  //     dispatch(
  //       OnAddContact(contactSlice, {
  //         userName: state.userName,
  //         userPhone: state.userPhone,
  //         id: shortid.generate(),
  //       }),
  //     ),
  // });
  
  export default connect(mapStateToProps, mapDispatchToProps)(InputForm);
  