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

import generic from 'store/generic';
import ModuleDisplayFields, { StateProps, DispatchProps, OwnProps } from './ModuleDisplayFields';

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

const mapDispatchToProps = {
  loadOne: generic.actions.detail.request.action,
};

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

export default Wrapped;
