mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-16 21:15:33 -04:00
17 lines
463 B
TypeScript
17 lines
463 B
TypeScript
import React from 'react';
|
|
import Label from 'Components/Label';
|
|
import DownloadProtocol from 'DownloadClient/DownloadProtocol';
|
|
import styles from './ProtocolLabel.css';
|
|
|
|
interface ProtocolLabelProps {
|
|
protocol: DownloadProtocol;
|
|
}
|
|
|
|
function ProtocolLabel({ protocol }: ProtocolLabelProps) {
|
|
const protocolName = protocol === 'usenet' ? 'nzb' : protocol;
|
|
|
|
return <Label className={styles[protocol]}>{protocolName}</Label>;
|
|
}
|
|
|
|
export default ProtocolLabel;
|