import React, { FC } from 'react'; import SuggestionsView from './SuggestionsView'; import UpcomingView from './UpcomingView'; import GenresView from './GenresView'; import ItemsView from './ItemsView'; import { LibraryTab } from 'types/libraryTab'; import { ParentId } from 'types/library'; import { LibraryTabContent } from 'types/libraryTabContent'; interface PageTabContentProps { parentId: ParentId; currentTab: LibraryTabContent; } const PageTabContent: FC = ({ parentId, currentTab }) => { if (currentTab.viewType === LibraryTab.Suggestions) { return ( ); } if (currentTab.viewType === LibraryTab.Upcoming) { return ; } if (currentTab.viewType === LibraryTab.Genres) { return ( ); } return ( ); }; export default PageTabContent;