// @flow import React from 'react'; import Button from 'component/button'; import FilePrice from 'component/filePrice'; import { formatLbryUrlForWeb } from 'util/url'; import { withRouter } from 'react-router'; import { URL } from 'config'; import OdyseeLogo from 'component/header/odysee_logo.png'; import OdyseeLogoWithText from 'component/header/odysee_white.png'; type Props = { uri: string, title: ?string, isInApp: boolean, }; function FileViewerEmbeddedTitle(props: Props) { const { uri, title, isInApp } = props; let contentLink = `${formatLbryUrlForWeb(uri)}`; if (!isInApp) { contentLink = `${contentLink}?src=embed`; } const contentLinkProps = isInApp ? { navigate: contentLink } : { href: contentLink }; const lbryLinkProps = isInApp ? { navigate: '/' } : { href: URL }; return (
{isInApp && }
); } export default withRouter(FileViewerEmbeddedTitle);