import{d as e,n as t,f as n}from"./index-DJXN7D4i.js";const a={async getHotelBookings(r){try{const o=await e.get("/hotel/bookings",{params:r});return t(o)}catch(o){return n(o)}},async getCustomerBookings(){try{const r=await e.get("/customer/bookings");return t(r)}catch(r){return n(r)}},async cancelBooking(r){try{const o=await e.post(`/customer/bookings/${r}/cancel`);return t(o)}catch(o){return n(o)}}};export{a as b};
