Files
movie-advisor/components/Trending/useTrending.ts
T
2024-10-28 17:20:05 +02:00

8 lines
247 B
TypeScript

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