// @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(); if (!claimUri) { return null; } return ( { push(formatLbryUrlForWeb(claimUri)); }} > ); }