feat: show page

This commit is contained in:
ner committed 2024-11-06 22:12:19 +02:00
1 parent abe1c795a1
commit 183c7231a1
26 files changed
+210 -176

No files matched your search

+3 -1
View File
@@ -3,9 +3,11 @@ import mapMoviesSeriesResponseToShows from '../dto/Show';
export type TrendingQueryProps = {
type: 'trending' | 'streaming' | 'theater';
enabled?: boolean;
};
const trendingQuery = ({ type }: TrendingQueryProps) => ({
const trendingQuery = ({ type, enabled }: TrendingQueryProps) => ({
enabled,
queryKey: ['trending', `type-${type}`],
queryFn: () => {
const params: Record<string, string | number> = {};