mirror of
https://github.com/Jellify-Music/App.git
synced 2025-12-30 15:29:49 -06:00
59 lines
1.7 KiB
TypeScript
59 lines
1.7 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,
|
|
Tabs: undefined,
|
|
Player: undefined,
|
|
Queue: undefined,
|
|
Artist: {
|
|
artist: BaseItemDto
|
|
};
|
|
Album: {
|
|
album: BaseItemDto
|
|
};
|
|
Playlist: {
|
|
playlist: BaseItemDto
|
|
};
|
|
Details: {
|
|
item: BaseItemDto
|
|
}
|
|
}
|
|
|
|
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 TracksProps = NativeStackScreenProps<StackParamList, "Tracks">;
|
|
|
|
export type GenresProps = NativeStackScreenProps<StackParamList, "Genres">;
|
|
|
|
export type DetailsProps = NativeStackScreenProps<StackParamList, "Details">; |