import{r as a,j as e}from"./index-bxQg5cVO.js";const d=({apiUrl:c})=>{const[l,r]=a.useState([]),[n,o]=a.useState(!0);return a.useEffect(()=>{(async()=>{try{const i=await(await fetch(c)).json();r(i)}catch(t){console.error("Failed to fetch services:",t)}finally{o(!1)}})()},[]),n?e.jsx("div",{children:"Loading..."}):e.jsx("section",{className:"about__services-wrapper pb-4 pt-32 tablet:pb-20 tablet:pt-40",children:e.jsxs("div",{className:"container",style:{maxWidth:"1313px"},children:[e.jsx("h2",{className:"mb-8 text-center text-white tablet:mb-20",children:"OUR SERVICES"}),e.jsx("div",{className:"about__services",children:l.map((s,t)=>e.jsxs("div",{className:"about__services-item",children:[e.jsx("div",{className:"about__services-item__img",children:e.jsx("img",{src:s.image,alt:s.alt,loading:"lazy",className:"about__services-item__img-inner",style:{visibility:"visible"}})}),e.jsx("div",{className:"about__services-item__text",children:e.jsxs("div",{className:"about__services-item__text-inner",children:[e.jsx("h3",{className:"mb-6 text-2xl xlPc:text-4xl",children:s.title}),e.jsx("ul",{className:"text-base font-thin xlPc:text-2xl",role:"list",children:s.items.map((i,m)=>e.jsx("li",{className:"services__item-li",children:i},m))})]})})]},t))})]})})};export{d as A};
