import apiClient from "@/lib/axiosClient";
import { API_ENDPOINTS } from "@/lib/apiEndpoints";
import type { AdPlacement } from "@/types/ads.types";

export async function fetchAdPlacements(): Promise<AdPlacement[]> {
  const { data } = await apiClient.post<{ result: AdPlacement[] }>(
    API_ENDPOINTS.AD_PLACEMENTS,
  );
  return data?.result ?? [];
}
