import { useQuery, useMutation } from '@tanstack/react-query'
import { userService } from '@/services/user'
import { userKeys } from '@/lib/query-keys'

export function useUserAlbumCreateCount() {
  return useQuery({
    queryKey: userKeys.albumCreateCount(),
    queryFn: () => userService.getUserAlbumCreateCount(),
  })
}

export function useBuyCreateImageCount() {
  return useMutation({
    mutationFn: (data: { count: number }) => userService.buyCreateImageCount(data),
  })
}
