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.
57 lines
1.3 KiB
57 lines
1.3 KiB
import React from 'react';
|
|
import Modal from 'Components/Modal/Modal';
|
|
import DownloadProtocol from 'DownloadClient/DownloadProtocol';
|
|
import { sizes } from 'Helpers/Props';
|
|
import Language from 'Language/Language';
|
|
import { QualityModel } from 'Quality/Quality';
|
|
import OverrideMatchModalContent from './OverrideMatchModalContent';
|
|
|
|
interface OverrideMatchModalProps {
|
|
isOpen: boolean;
|
|
title: string;
|
|
indexerId: number;
|
|
guid: string;
|
|
movieId?: number;
|
|
languages: Language[];
|
|
quality: QualityModel;
|
|
protocol: DownloadProtocol;
|
|
isGrabbing: boolean;
|
|
grabError?: string;
|
|
onModalClose(): void;
|
|
}
|
|
|
|
function OverrideMatchModal(props: OverrideMatchModalProps) {
|
|
const {
|
|
isOpen,
|
|
title,
|
|
indexerId,
|
|
guid,
|
|
movieId,
|
|
languages,
|
|
quality,
|
|
protocol,
|
|
isGrabbing,
|
|
grabError,
|
|
onModalClose,
|
|
} = props;
|
|
|
|
return (
|
|
<Modal isOpen={isOpen} size={sizes.LARGE} onModalClose={onModalClose}>
|
|
<OverrideMatchModalContent
|
|
title={title}
|
|
indexerId={indexerId}
|
|
guid={guid}
|
|
movieId={movieId}
|
|
languages={languages}
|
|
quality={quality}
|
|
protocol={protocol}
|
|
isGrabbing={isGrabbing}
|
|
grabError={grabError}
|
|
onModalClose={onModalClose}
|
|
/>
|
|
</Modal>
|
|
);
|
|
}
|
|
|
|
export default OverrideMatchModal;
|