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

import GenericDisplayFields, { GenericDisplayFieldsProps } from './GenericDisplayFields';

const mapStateToProps = () => ({});

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

const Wrapped = connect<GenericDisplayFieldsProps>(
  mapStateToProps,
  mapDispatchToProps,
)(GenericDisplayFields);

export default Wrapped;
