lbry-desktop/ui/component/fileAuthor/view.jsx
2021-03-11 14:12:59 -05:00

20 lines
502 B
JavaScript

// @flow
import * as React from 'react';
import ClaimPreview from 'component/claimPreview';
type Props = {
channelUri: string,
hideActions?: boolean,
};
function FileAuthor(props: Props) {
const { channelUri, hideActions } = props;
return channelUri ? (
<ClaimPreview uri={channelUri} type="inline" properties={false} hideMenu hideActions={hideActions} />
) : (
<div className="claim-preview--inline claim-preview__title">{__('Anonymous')}</div>
);
}
export default FileAuthor;