import{a as s}from"./vendor-utils-BveVE6Uf.js";import{a as c}from"./vendor-react-BBazpZul.js";const D=()=>{const[a,e]=c.useState(!1);return{addDoctorMedicalTestAsync:async t=>{try{return e(!0),(await s.post("/DoctorMedicalTests/AddDoctorMedicalTest",t)).data}finally{e(!1)}},getDoctorMedicalTestsAsync:async t=>{try{return e(!0),(await s.get("/DoctorMedicalTests/GetDoctorMedicalTests",{params:t})).data}finally{e(!1)}},getDoctorMedicalTestByIdAsync:async t=>{try{return e(!0),(await s.get(`DoctorMedicalTests/GetDoctorMedicalTest/${t}`)).data}finally{e(!1)}},deleteDoctorMedicalTestAsync:async t=>{try{return e(!0),(await s.delete(`/DoctorMedicalTests/DeleteDoctorMedicalTest/${t}`)).data}finally{e(!1)}},loading:a}};export{D as u};
