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

20 lines
438 B
React
Raw Normal View History

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