mirror of https://github.com/lidarr/Lidarr
23 lines
569 B
TypeScript
23 lines
569 B
TypeScript
import React from 'react';
|
|
import Modal from 'Components/Modal/Modal';
|
|
import TagsModalContent from './TagsModalContent';
|
|
|
|
interface TagsModalProps {
|
|
isOpen: boolean;
|
|
ids: number[];
|
|
onApplyTagsPress: (tags: number[], applyTags: string) => void;
|
|
onModalClose: () => void;
|
|
}
|
|
|
|
function TagsModal(props: TagsModalProps) {
|
|
const { isOpen, onModalClose, ...otherProps } = props;
|
|
|
|
return (
|
|
<Modal isOpen={isOpen} onModalClose={onModalClose}>
|
|
<TagsModalContent {...otherProps} onModalClose={onModalClose} />
|
|
</Modal>
|
|
);
|
|
}
|
|
|
|
export default TagsModal;
|