update: gemini fixes
This commit is contained in:
10
hooks/useShow.ts
Normal file
10
hooks/useShow.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { getShowById } from "@/apis/showApi";
|
||||
|
||||
export const useShow = (showId: number) => {
|
||||
return useQuery({
|
||||
queryKey: ["show", showId],
|
||||
queryFn: () => getShowById(showId),
|
||||
enabled: !!showId,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user