lbry-desktop/ui/component/fileViewCount/view.jsx
Sean Yesmunt 618b186ac1 cleanup
2020-01-06 16:35:43 -05:00

20 lines
417 B
JavaScript

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