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

{uri}

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