mirror of
https://github.com/Lidarr/Lidarr
synced 2026-01-27 09:52:20 +01:00
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
37 lines
667 B
JavaScript
37 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;
|