text: import React from 'react';
  
  import ImportImpUrlWizard, { EDIT_IMPORTIMPURL_FORM } from '../../components/imf/ImportImpUrlWizard';
  import withFormActions from '../../hoc/withFormActions';
  
  class ImportImpUrl extends React.PureComponent {
    componentDidMount() {
      document.title = 'xray | IMF | Import URL';
    }
  
    componentWillUnmount() {
      const { destroyForm } = this.props;
      destroyForm(EDIT_IMPORTIMPURL_FORM);
    }
  
    render() {
      const { history } = this.props;
      return (
        <ImportImpUrlWizard
          onSuccess={(response) => history.push(`/job/${response.data.jobId}`)}
        />
      );
    }
  }
  
  export default withFormActions(ImportImpUrl);
  