2020-01-06 19:32:35 +01:00
|
|
|
// @flow
|
|
|
|
import * as React from 'react';
|
|
|
|
import ClaimPreview from 'component/claimPreview';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
channelUri: string,
|
|
|
|
};
|
|
|
|
|
2020-01-06 21:57:49 +01:00
|
|
|
function FileAuthor(props: Props) {
|
2020-01-06 19:32:35 +01:00
|
|
|
const { channelUri } = props;
|
|
|
|
|
|
|
|
return channelUri ? (
|
2021-02-25 18:43:56 +01:00
|
|
|
<ClaimPreview uri={channelUri} type="inline" properties={false} />
|
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;
|