import PropTypes from 'prop-types'; import React from 'react'; import FieldSet from 'Components/FieldSet'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import { inputTypes } from 'Helpers/Props'; function IndexerOptions(props) { const { advancedSettings, isFetching, error, settings, hasSettings, onInputChange } = props; return (
{ isFetching && } { !isFetching && error &&
Unable to load indexer options
} { hasSettings && !isFetching && !error &&
Minimum Age Maximum Size Retention RSS Sync Interval
}
); } IndexerOptions.propTypes = { advancedSettings: PropTypes.bool.isRequired, isFetching: PropTypes.bool.isRequired, error: PropTypes.object, settings: PropTypes.object.isRequired, hasSettings: PropTypes.bool.isRequired, onInputChange: PropTypes.func.isRequired }; export default IndexerOptions;