import { connect } from 'react-redux';
import Resource, { StateProps, DispatchProps, OwnProps } from './Resource';

const mapStateToProps = (state): Record<string, any> => ({
  appHistory: state.generic.appHistory,
});

const mapDispatchToProps = {};

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

export default Wrapped;
