// @flow import * as ICONS from 'constants/icons'; import React from 'react'; import I18nMessage from 'component/i18nMessage'; 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 {__('Reposted')}
); } if (!repostUrl) { return null; } return (
}}> %repost_channel_link% reposted
); } export default ClaimRepostAuthor;