// API client for reading progress
import { apiRequest } from "./queryClient";

export async function updateReadingProgress({
	userId,
	workId,
	translationId,
	progress,
}: {
	userId: number;
	workId: number;
	translationId?: number;
	progress: number;
}) {
	return apiRequest("POST", "/api/reading-progress", {
		userId,
		workId,
		translationId,
		progress,
	});
}

// TODO: Add more reading-related API methods as needed
