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

28 lines
622 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 = {
2021-03-11 18:08:11 +01:00
hideActions?: boolean,
channelSubCount?: number,
// redux
channelUri: string,
2020-01-06 19:32:35 +01:00
};
export default function ClaimAuthor(props: Props) {
const { channelUri, hideActions, channelSubCount } = props;
2020-01-06 19:32:35 +01:00
return channelUri ? (
<ClaimPreview
uri={channelUri}
type="inline"
properties={false}
hideMenu
hideActions={hideActions}
channelSubCount={channelSubCount}
/>
2020-01-06 19:32:35 +01:00
) : (
<span className="claim-preview--inline claim-preview__title">{__('Anonymous')}</span>
2020-01-06 19:32:35 +01:00
);
}