Files
2024-10-28 17:20:05 +02:00

13 lines
310 B
TypeScript

import { useQuery } from '@tanstack/react-query';
import detailsQuery from '@/data/queries/details';
interface Props {
showId?: Show['id'];
showType?: Show['type'];
}
const useDetails = ({ showId, showType = 'movie' }: Props) => useQuery(detailsQuery({ showId, showType }));
export default useDetails;