import { apiGet, apiPost, apiPut, apiDelete } from "@/app/lib/clientApi"; import type { AdminInterestEntity } from "@/app/lib/types"; export async function listAdminInterests(): Promise { return apiGet("/api/interests"); } export async function saveAdminInterest(payload: AdminInterestEntity): Promise { return payload.id ? apiPut(`/api/interests/${payload.id}`, payload) : apiPost("/api/interests", payload); } export const deleteAdminInterest = (id: number) => apiDelete(`/api/interests/${id}`);