import{a as t}from"./vendor-utils-BveVE6Uf.js";import{a as n}from"./vendor-react-BBazpZul.js";const T=()=>{const[c,e]=n.useState(!1);return{loading:c,AddMedicalTestAsync:async s=>{try{return e(!0),(await t.post("MedicalTests/AddMedicalTest",s)).data}finally{e(!1)}},EditMedicalTestAsync:async s=>{try{return e(!0),(await t.put(`MedicalTests/EditMedicalTest/${s.id}`,s)).data}finally{e(!1)}},GetMedicalTestsAsync:async s=>{try{return e(!0),(await t.get("MedicalTests/GetMedicalTests",{params:s})).data}finally{e(!1)}},GetMedicalTestByIdAsync:async s=>{try{return e(!0),(await t.get(`MedicalTests/GetMedicalTest/${s}`)).data}finally{e(!1)}},DeleteMedicalTestAsync:async s=>{try{return e(!0),(await t.delete(`MedicalTests/DeleteMedicalTest/${s}`)).data}finally{e(!1)}}}};export{T as u};
