// @flow import React, { Fragment } from 'react'; import MarkdownPreview from 'component/common/markdown-preview'; import ClaimTags from 'component/claimTags'; import CreditAmount from 'component/common/credit-amount'; import Button from 'component/button'; import * as PAGES from 'constants/pages'; import DateTime from 'component/dateTime'; type Props = { claim: ChannelClaim, uri: string, description: ?string, email: ?string, website: ?string, }; const formatEmail = (email: string) => { if (email) { const protocolRegex = new RegExp('^mailto:', 'i'); const protocol = protocolRegex.exec(email); return protocol ? email : `mailto:${email}`; } return null; }; function ChannelAbout(props: Props) { const { claim, uri, description, email, website } = props; return (
{description && ( <>
)} {email && (
)} {website && (
)}
{claim.meta.claims_in_channel}
{claim.canonical_url}
{claim.claim_id}
{' '} (
); } export default ChannelAbout;