mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
23c30734d2
Co-authored-by: Mark McDowall <mark@mcdowall.ca>
19 lines
577 B
TypeScript
19 lines
577 B
TypeScript
import React from 'react';
|
|
import { useSelector } from 'react-redux';
|
|
import { createQualityProfileSelectorForHook } from 'Store/Selectors/createQualityProfileSelector';
|
|
import translate from 'Utilities/String/translate';
|
|
|
|
interface QualityProfileNameProps {
|
|
qualityProfileId: number;
|
|
}
|
|
|
|
function QualityProfileName({ qualityProfileId }: QualityProfileNameProps) {
|
|
const qualityProfile = useSelector(
|
|
createQualityProfileSelectorForHook(qualityProfileId)
|
|
);
|
|
|
|
return <span>{qualityProfile?.name ?? translate('Unknown')}</span>;
|
|
}
|
|
|
|
export default QualityProfileName;
|