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

20 lines
439 B
React
Raw Permalink Normal View History

2020-01-06 19:32:35 +01:00
// @flow
import * as React from 'react';
import ClaimPreview from 'component/claimPreview';
type Props = {
channelUri: string,
};
2020-01-06 21:57:49 +01:00
function FileAuthor(props: Props) {
2020-01-06 19:32:35 +01:00
const { channelUri } = props;
return channelUri ? (
<ClaimPreview uri={channelUri} type="inline" properties={false} hideBlock />
) : (
2020-01-30 23:25:15 +01:00
<div className="claim-preview--inline claim-preview__title">{__('Anonymous')}</div>
2020-01-06 19:32:35 +01:00
);
}
2020-01-06 21:57:49 +01:00
export default FileAuthor;