mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 09:37:24 +00:00
23 lines
621 B
JavaScript
23 lines
621 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import Button from 'component/button';
|
|
|
|
type Props = {
|
|
numberOfNsfwClaims: number,
|
|
obscureNsfw: boolean,
|
|
className: ?string,
|
|
};
|
|
|
|
export default (props: Props) => {
|
|
const { numberOfNsfwClaims, obscureNsfw, className } = props;
|
|
|
|
return (
|
|
obscureNsfw &&
|
|
Boolean(numberOfNsfwClaims) && (
|
|
<div className={className || 'help'}>
|
|
{numberOfNsfwClaims} {numberOfNsfwClaims > 1 ? __('files') : __('file')} {__('hidden due to your')}{' '}
|
|
<Button button="link" navigate="/$/settings" label={__('content viewing preferences')} />.
|
|
</div>
|
|
)
|
|
);
|
|
};
|