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

21 lines
502 B
React
Raw 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,
2021-03-11 18:08:11 +01:00
hideActions?: boolean,
2020-01-06 19:32:35 +01:00
};
2020-01-06 21:57:49 +01:00
function FileAuthor(props: Props) {
2021-03-11 18:08:11 +01:00
const { channelUri, hideActions } = props;
2020-01-06 19:32:35 +01:00
return channelUri ? (
2021-03-11 18:08:11 +01:00
<ClaimPreview uri={channelUri} type="inline" properties={false} hideMenu hideActions={hideActions} />
2020-01-06 19:32:35 +01:00
) : (
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;