import React from "react"; import lbryuri from "lbryuri"; import { BusyMessage } from "component/common"; import FileTile from "component/fileTile"; class ChannelPage extends React.PureComponent { componentDidMount() { this.fetchClaims(this.props); } componentWillReceiveProps(nextProps) { this.fetchClaims(nextProps); } fetchClaims(props) { if (props.claimsInChannel === undefined) { props.fetchClaims(props.uri); } } render() { const { claimsInChannel, claim, uri } = this.props; let contentList; if (claimsInChannel === undefined) { contentList = ; } else if (claimsInChannel) { contentList = claimsInChannel.length ? claimsInChannel.map(claim => ) : {__("No content found.")}; } return (

{uri}

{__("This channel page is a stub.")}

{__("Published Content")}

{contentList}
); } } export default ChannelPage;