8 lines
246 B
TypeScript
8 lines
246 B
TypeScript
import { useQuery } from '@tanstack/react-query';
|
|
|
|
import trendingQuery, { TrendingQueryProps } from '@/api/queries/trending';
|
|
|
|
const useTrending = ({ type }: TrendingQueryProps) => useQuery(trendingQuery({ type }));
|
|
|
|
export default useTrending;
|