import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; import { Modal, ModalHeader, ModalBody, ModalFooter, } from 'reactstrap'; const ArchiveCreateModal = (props) => { const { t } = props; const [isCommentDownload, setIsCommentDownload] = useState(false); const [isFileDownload, setIsFileDownload] = useState(false); const [isSubordinatedPageDownload, setIsSubordinatedPageDownload] = useState(false); function changeIsCommentDownloadHandler() { setIsCommentDownload(!isCommentDownload); } function changeIsFileDownloadHandler() { setIsFileDownload(!isFileDownload); } function changeIsSubordinatedPageDownloadHandler() { setIsSubordinatedPageDownload(!isSubordinatedPageDownload); } function closeModalHandler() { if (props.onClose == null) { return; } props.onClose(); } return ( {t('Create Archive Page')}
); }; ArchiveCreateModal.propTypes = { t: PropTypes.func.isRequired, // i18next isOpen: PropTypes.bool.isRequired, onClose: PropTypes.func, }; export default withTranslation()(ArchiveCreateModal);