mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
refactor: extract reusable component
This commit is contained in:
parent
4882d9c8cc
commit
d370afd0b2
17 changed files with 437 additions and 216 deletions
29
src/types/libraryTabContent.ts
Normal file
29
src/types/libraryTabContent.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client';
|
||||
import { LibraryTab } from './libraryTab';
|
||||
import { CollectionType } from './collectionType';
|
||||
import { SectionsView } from './suggestionsSections';
|
||||
|
||||
export interface SuggestionsSectionsType {
|
||||
suggestionSectionsView: SectionsView[];
|
||||
isMovieRecommendations?: boolean;
|
||||
}
|
||||
|
||||
export interface LibraryTabContent {
|
||||
viewType: LibraryTab;
|
||||
itemType?: BaseItemKind[];
|
||||
collectionType?: CollectionType;
|
||||
sectionsType?: SuggestionsSectionsType;
|
||||
isBtnPlayAllEnabled?: boolean;
|
||||
isBtnQueueEnabled?: boolean;
|
||||
isBtnShuffleEnabled?: boolean;
|
||||
isBtnSortEnabled?: boolean;
|
||||
isBtnFilterEnabled?: boolean;
|
||||
isBtnNewCollectionEnabled?: boolean;
|
||||
isBtnGridListEnabled?: boolean;
|
||||
isAlphabetPickerEnabled?: boolean;
|
||||
noItemsMessage?: string;
|
||||
}
|
||||
|
||||
export interface LibraryTabMapping {
|
||||
[index: number]: LibraryTabContent;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue