lbry-desktop/ui/component/claimAuthor/view.jsx
Rafael 6443af34a0 Refactor claimAuthor
- channelUrl to cached selector also using claimForUri cached selector
2022-02-08 12:35:40 -05:00

27 lines
622 B
JavaScript

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