Files
movie-advisor/components/Trending/useTrending.ts
T
2024-11-06 22:12:19 +02:00

8 lines
265 B
TypeScript

import { useQuery } from '@tanstack/react-query';
import trendingQuery, { TrendingQueryProps } from '@/data/queries/trending';
const useTrending = ({ type, enabled }: TrendingQueryProps) => useQuery(trendingQuery({ type, enabled }));
export default useTrending;