mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
9c599a6be4
Fixes #2132
21 lines
547 B
TypeScript
21 lines
547 B
TypeScript
import React from 'react';
|
|
import Label from 'Components/Label';
|
|
import { IndexerPrivacy } from 'Indexer/Indexer';
|
|
import firstCharToUpper from 'Utilities/String/firstCharToUpper';
|
|
import translate from 'Utilities/String/translate';
|
|
import styles from './PrivacyLabel.css';
|
|
|
|
interface PrivacyLabelProps {
|
|
privacy: IndexerPrivacy;
|
|
}
|
|
|
|
function PrivacyLabel({ privacy }: PrivacyLabelProps) {
|
|
return (
|
|
<Label className={styles[`${privacy}Label`]}>
|
|
{translate(firstCharToUpper(privacy))}
|
|
</Label>
|
|
);
|
|
}
|
|
|
|
export default PrivacyLabel;
|