lbry-desktop/ui/component/fileViewCount/view.jsx

21 lines
417 B
React
Raw Normal View History

2020-01-06 19:32:35 +01:00
// @flow
import React from 'react';
import HelpLink from 'component/common/help-link';
type Props = {
viewCount: string,
};
2020-01-06 21:57:49 +01:00
function FileViewCount(props: Props) {
2020-01-06 19:32:35 +01:00
const { viewCount } = props;
return (
<span>
{viewCount !== 1 ? __('%view_count% Views', { view_count: viewCount }) : __('1 View')}
<HelpLink href="https://lbry.com/faq/views" />
</span>
);
}
2020-01-06 21:57:49 +01:00
export default FileViewCount;