10 lines
295 B
TypeScript
10 lines
295 B
TypeScript
'use client';
|
|
|
|
import popularQuery from '@/data/queries/popular';
|
|
import useInfiniteList from '@/hooks/useInfiniteList';
|
|
|
|
const useStarring = ({ actorId }: { actorId?: string }) =>
|
|
useInfiniteList(popularQuery({ sortBy: 'vote_average.desc', starring: actorId }));
|
|
|
|
export default useStarring;
|