CustomParamsContainer.tsx 513 B

1234567891011121314151617181920
  1. import { connect } from 'react-redux';
  2. import { RootState, TopicConfigByName } from 'redux/interfaces';
  3. import { withRouter, RouteComponentProps } from 'react-router-dom';
  4. import CustomParams from './CustomParams';
  5. interface OwnProps extends RouteComponentProps {
  6. isSubmitting: boolean;
  7. config?: TopicConfigByName;
  8. }
  9. const mapStateToProps = (
  10. state: RootState,
  11. { isSubmitting, config }: OwnProps
  12. ) => ({
  13. isSubmitting,
  14. config,
  15. });
  16. export default withRouter(connect(mapStateToProps)(CustomParams));