Files
App/components/types.tsx
T
Violet Caulfield 31f5a552db Favorite playlists, item detail changes
You can now view your favorite playlists in the Favorites tab

You can now see an updated layout of the item detail modal, including big clunky buttons for the queuing options and for viewing the album
2025-02-05 17:59:14 -06:00

75 lines
2.1 KiB
TypeScript

import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client/models";
import { NativeStackScreenProps } from "@react-navigation/native-stack";
export type StackParamList = {
Home: undefined;
Discover: undefined;
Favorites: undefined;
Artists: undefined;
Albums: undefined;
Tracks: undefined;
Genres: undefined;
Playlists: undefined;
Search: undefined;
Settings: undefined;
AccountDetails: undefined;
DevTools: undefined;
Tabs: undefined;
Player: undefined;
Queue: undefined;
Artist: {
artist: BaseItemDto
};
Album: {
album: BaseItemDto
};
Playlist: {
playlist: BaseItemDto
};
Details: {
item: BaseItemDto,
isNested: boolean | undefined
}
}
export type ProvidedHomeProps = NativeStackScreenProps<StackParamList, 'Home'>;
export type DiscoverProps = NativeStackScreenProps<StackParamList, 'Discover'>;
export type TabProps = NativeStackScreenProps<StackParamList, 'Tabs'>;
export type PlayerProps = NativeStackScreenProps<StackParamList, 'Player'>;
export type HomeArtistProps = NativeStackScreenProps<StackParamList, 'Artist'>;
export type HomeAlbumProps = NativeStackScreenProps<StackParamList, 'Album'>;
export type HomePlaylistProps = NativeStackScreenProps<StackParamList, "Playlist">;
export type QueueProps = NativeStackScreenProps<StackParamList, "Queue">;
export type LibraryProps = NativeStackScreenProps<StackParamList, "Favorites">;
export type ArtistsProps = NativeStackScreenProps<StackParamList, "Artists">;
export type AlbumsProps = NativeStackScreenProps<StackParamList, "Albums">;
export type PlaylistsProps = NativeStackScreenProps<StackParamList, "Playlists">;
export type TracksProps = NativeStackScreenProps<StackParamList, "Tracks">;
export type GenresProps = NativeStackScreenProps<StackParamList, "Genres">;
export type DetailsProps = NativeStackScreenProps<StackParamList, "Details">;
export type AccountDetailsProps = NativeStackScreenProps<StackParamList, "AccountDetails">;
export type DevToolsProps = NativeStackScreenProps<StackParamList, 'DevTools'>;