14 lines
330 B
TypeScript
14 lines
330 B
TypeScript
'use client';
|
|
|
|
import similarQuery from '@/data/queries/similar';
|
|
import useInfiniteList from '@/hooks/useInfiniteList';
|
|
|
|
interface Props {
|
|
showId: string;
|
|
showType: Show['type'];
|
|
}
|
|
|
|
const useSimilar = ({ showId, showType = 'movie' }: Props) => useInfiniteList(similarQuery({ showId, showType }));
|
|
|
|
export default useSimilar;
|