mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-06 02:50:30 -06:00
37 lines
1.1 KiB
TypeScript
37 lines
1.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;
|
|
Tabs: undefined,
|
|
Player: undefined,
|
|
Queue: undefined,
|
|
Artist: {
|
|
artistId: string,
|
|
artistName: string
|
|
};
|
|
Album: {
|
|
album: BaseItemDto
|
|
};
|
|
Playlist: {
|
|
playlist: 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">; |