// @flow import * as ICONS from 'constants/icons'; import React from 'react'; import UriIndicator from 'component/uriIndicator'; import Icon from 'component/common/icon'; type Props = { uri: string, claim: ?Claim, short: boolean, }; function ClaimRepostAuthor(props: Props) { const { claim, short } = props; const repostChannelUrl = claim && claim.repost_channel_url; const repostUrl = claim && claim.repost_url; if (short && repostUrl) { return (

{repostUrl}
); } if (repostUrl && !repostChannelUrl) { return (

{__('Anonymous')}
); } if (!repostUrl) { return null; } return (

); } export default ClaimRepostAuthor;