import { connect } from 'react-redux';
import { StoreState } from 'store/rootReducer';

import message from 'store/message';
import ManageRoom, { StateProps, DispatchProps, OwnProps } from './ManageRoom';

const mapStateToProps = (state: StoreState): {} => ({});

const mapDispatchToProps = {
  removeMember: message.actions.removePeopleRoom.request.action,
  addMember: message.actions.addPeopleRoom.request.action,
};

const Wrapped = connect<StateProps, DispatchProps, OwnProps>(
  mapStateToProps,
  mapDispatchToProps,
)(ManageRoom);

export default Wrapped;
