Files
App/components/types.tsx
2025-01-13 11:32:26 -06:00

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">;