You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
977 B
32 lines
977 B
import React from 'react';
|
|
import Modal from 'Components/Modal/Modal';
|
|
import DownloadProtocol from 'DownloadClient/DownloadProtocol';
|
|
import { sizes } from 'Helpers/Props';
|
|
import SelectDownloadClientModalContent from './SelectDownloadClientModalContent';
|
|
|
|
interface SelectDownloadClientModalProps {
|
|
isOpen: boolean;
|
|
protocol: DownloadProtocol;
|
|
modalTitle: string;
|
|
onDownloadClientSelect(downloadClientId: number): void;
|
|
onModalClose(): void;
|
|
}
|
|
|
|
function SelectDownloadClientModal(props: SelectDownloadClientModalProps) {
|
|
const { isOpen, protocol, modalTitle, onDownloadClientSelect, onModalClose } =
|
|
props;
|
|
|
|
return (
|
|
<Modal isOpen={isOpen} onModalClose={onModalClose} size={sizes.MEDIUM}>
|
|
<SelectDownloadClientModalContent
|
|
protocol={protocol}
|
|
modalTitle={modalTitle}
|
|
onDownloadClientSelect={onDownloadClientSelect}
|
|
onModalClose={onModalClose}
|
|
/>
|
|
</Modal>
|
|
);
|
|
}
|
|
|
|
export default SelectDownloadClientModal;
|