import React from 'react'; import PropTypes from 'prop-types'; import { ApiUrlConsumer } from '../utils/contexts/'; import { PageStore } from '../utils/stores/'; import { MediaListWrapper } from '../components/MediaListWrapper'; import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader'; import ProfilePagesContent from '../components/profile-page/ProfilePagesContent'; import { LazyLoadItemListAsync } from '../components/item-list/LazyLoadItemListAsync.jsx'; import { ProfileMediaPage } from './ProfileMediaPage'; export class ProfileHistoryPage extends ProfileMediaPage { constructor(props) { super(props, 'author-history'); this.state = { resultsCount: null, }; this.getCountFunc = this.getCountFunc.bind(this); } getCountFunc(resultsCount) { this.setState({ resultsCount: resultsCount, }); } pageContent() { return [ this.state.author ? ( ) : null, this.state.author ? ( {(apiUrl) => ( )} ) : null, ]; } } ProfileHistoryPage.propTypes = { title: PropTypes.string.isRequired, }; ProfileHistoryPage.defaultProps = { title: 'History', };