import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { kinds } from 'Helpers/Props'; import Alert from 'Components/Alert'; import Button from 'Components/Link/Button'; import FieldSet from 'Components/FieldSet'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import ModalContent from 'Components/Modal/ModalContent'; import ModalHeader from 'Components/Modal/ModalHeader'; import ModalBody from 'Components/Modal/ModalBody'; import ModalFooter from 'Components/Modal/ModalFooter'; import AddImportListItem from './AddImportListItem'; import styles from './AddImportListModalContent.css'; import titleCase from 'Utilities/String/titleCase'; class AddImportListModalContent extends Component { // // Render render() { const { isSchemaFetching, isSchemaPopulated, schemaError, listGroups, onImportListSelect, onModalClose } = this.props; return ( Add List { isSchemaFetching && } { !isSchemaFetching && !!schemaError &&
Unable to add a new list, please try again.
} { isSchemaPopulated && !schemaError &&
Readarr supports multiple lists for importing Albums and Artists into the database.
For more information on the individual lists, click on the info buttons.
{ Object.keys(listGroups).map((key) => { return (
{ listGroups[key].map((list) => { return ( ); }) }
); }) }
}
); } } AddImportListModalContent.propTypes = { isSchemaFetching: PropTypes.bool.isRequired, isSchemaPopulated: PropTypes.bool.isRequired, schemaError: PropTypes.object, listGroups: PropTypes.object.isRequired, onImportListSelect: PropTypes.func.isRequired, onModalClose: PropTypes.func.isRequired }; export default AddImportListModalContent;