src/applications/accredited-representative-portal/accreditation/21a/containers/Form.jsx
import React from 'react';
import PropTypes from 'prop-types';
import RoutedSavableApp from 'platform/forms/save-in-progress/RoutedSavableApp';
import formConfig from '../config/form';
function Form({ location, children }) {
return (
<RoutedSavableApp formConfig={formConfig} currentLocation={location}>
{children}
</RoutedSavableApp>
);
}
Form.propTypes = {
children: PropTypes.node.isRequired,
location: PropTypes.object.isRequired,
};
export default Form;