// @flow import React from 'react'; import Card from 'component/common/card'; import ClaimPreview from 'component/claimPreview'; import { useHistory } from 'react-router'; import { formatLbryUrlForWeb } from 'util/url'; type Props = { title?: string, claimUri: string, }; export default function LivestreamLink(props: Props) { const { claimUri, title = null } = props; const { push } = useHistory(); const element = (props: { children: any }) => ( { push(formatLbryUrlForWeb(claimUri)); }} > {props.children} ); return claimUri ? : null; }