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}

{__( "Channel pages are empty for all publishers currently, but will be coming in a future update." )}

{__("Published Content")}

{contentList}
); } } export default ChannelPage;