// @ts-nocheck
import { connect } from 'react-redux';
import {
  fetchUsers,
  fetchUser,
  deleteUser,
  inactiveUser,
  editUser,
  submitInvite
} from '@/store/users/users.actions';

export const mapDispatchToProps = (dispatch) => ({
  requestFetchUsers: () => dispatch(fetchUsers({})),
  requestFetchUser: (id) => dispatch(fetchUser({ id })),
  requestDeleteUser: (id) => dispatch(deleteUser({ id })),
  requestInactiveUser: (id) => dispatch(inactiveUser({ id })),
  requestEditUser: (id, form) => dispatch(editUser({ form, id })),
  requestSubmitInvite: (form) => dispatch(submitInvite({ form })),

});

export const withUsersActions = connect(null, mapDispatchToProps);
