feat: show page
This commit is contained in:
1 parent
abe1c795a1
commit
183c7231a1
26 files changed
+210
-176
No files matched your search
@@ -0,0 +1,17 @@
|
||||
'use client';
|
||||
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
|
||||
import similarQuery from '@/data/queries/similar';
|
||||
|
||||
interface Props {
|
||||
showId: Show['id'];
|
||||
showType: Show['type'];
|
||||
type?: 'similar' | 'recommendations';
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
const useSimilar = ({ showId, showType = 'movie', type = 'similar', enabled }: Props) =>
|
||||
useQuery({ ...similarQuery({ showId, showType, type }), enabled });
|
||||
|
||||
export default useSimilar;
|
||||
Reference in new issue
Block a user