import { apiRequest } from "@/lib/api/api-service";
import { ApiResponse } from "@/types/api-response";
import type { ValueBoardMatch } from "./types";

/**
 * Value Board Service
 * Backend: /api/value-board
 */

const getValueBoard = (sport?: string) => {
  return apiRequest<ApiResponse<ValueBoardMatch[]>>({
    url: "/value-board",
    client: "core",
    method: "get",
    params: sport ? { sport } : undefined,
  });
};

export const valueBoardService = {
  getValueBoard,
};
