import React from 'react'; 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 ProfilePlaylistsPage extends ProfileMediaPage { constructor(props) { super(props, 'author-playlists'); this.state = { loadedAuthor: false, loadedPlaylists: false, playlistsCount: -1, }; this.getPlaylistsCountFunc = this.getPlaylistsCountFunc.bind(this); } getPlaylistsCountFunc(resultsCount) { this.setState({ loadedPlaylists: true, playlistsCount: resultsCount, }); } pageContent() { return [ this.state.author ? ( ) : null, this.state.author ? ( {(apiUrl) => ( )} ) : null, ]; } }