import React from "react"; import lbryuri from "lbryuri"; import { BusyMessage } from "component/common"; import ChannelPage from "page/channel"; import FilePage from "page/file"; class ShowPage extends React.PureComponent { componentWillMount() { const { isResolvingUri, resolveUri, uri } = this.props; if (!isResolvingUri) resolveUri(uri); } componentWillReceiveProps(nextProps) { const { isResolvingUri, resolveUri, claim, uri } = nextProps; if (!isResolvingUri && claim === undefined && uri) { resolveUri(uri); } } render() { const { claim, isResolvingUri, uri } = this.props; let innerContent = ""; if ((isResolvingUri && !claim) || !claim) { innerContent = (

{uri}

{isResolvingUri && } {claim === null && !isResolvingUri && {__("There's nothing at this location.")} }
); } else if (claim && claim.name.length && claim.name[0] === "@") { innerContent = ; } else if (claim) { innerContent = ; } return
{innerContent}
; } } export default ShowPage;