// @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 = {
claimUri: string,
};
export default function LivestreamLink(props: Props) {
const { claimUri } = props;
const { push } = useHistory();
const element = (props: { children: any }) => (
{
push(formatLbryUrlForWeb(claimUri));
}}
>
{props.children}
);
return claimUri && ;
}