import api from './api'; import type { YieldStudy } from '../types'; const BASE_URL = '/yield-studies'; export const getStudies = () => api.get(BASE_URL); export const createStudy = (data: Partial) => api.post(BASE_URL, data); export const updateStudy = (id: string, data: Partial) => api.put(`${BASE_URL}/${id}`, data); export const deleteStudy = (id: string) => api.delete(`${BASE_URL}/${id}`);