mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
d8c89f5bbd
Ability to cancel an import lookup/search at any point. Ability to move artist path from Artist Edit or bulk move from Mass Editor. Trigger manual import for Artist path from Artist Detail page. Pulled from Sonarr
38 lines
667 B
JavaScript
38 lines
667 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import Label from 'Components/Label';
|
|
import { kinds } from 'Helpers/Props';
|
|
|
|
function EpisodeLanguage(props) {
|
|
const {
|
|
className,
|
|
language,
|
|
isCutoffNotMet
|
|
} = props;
|
|
|
|
if (!language) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Label
|
|
className={className}
|
|
kind={isCutoffNotMet ? kinds.INVERSE : kinds.DEFAULT}
|
|
>
|
|
{language.name}
|
|
</Label>
|
|
);
|
|
}
|
|
|
|
EpisodeLanguage.propTypes = {
|
|
className: PropTypes.string,
|
|
language: PropTypes.object,
|
|
isCutoffNotMet: PropTypes.bool
|
|
};
|
|
|
|
EpisodeLanguage.defaultProps = {
|
|
isCutoffNotMet: true
|
|
};
|
|
|
|
export default EpisodeLanguage;
|