import{r,j as e,f as n}from"./index-7c7a558c.js";import{B as o}from"./Breadcrumb-0d748722.js";import{P as x}from"./PageLoader-31c46f94.js";const d="/assets/faq-section-db2506e2.jpg",p=()=>{const[s,l]=r.useState(null);if(r.useEffect(()=>{(async()=>{try{const a=await n.get("https://www.bdskilltech.com/backend/public/api/frontend/faq");l(a.data.data)}catch(a){console.error("Error fetching data:",a)}})()},[]),!s)return e.jsx(x,{title:"FAQ"});const{pageTitle:c,faqs:i}=s;return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:c}),e.jsx("div",{className:"bg-gray-100 py-12 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("div",{className:"w-full flex justify-center items-center",children:e.jsx("img",{className:"w-7/12 h-auto",src:d,alt:"faq"})}),e.jsx("h2",{className:"mb-8 text-4xl tracking-tight font-extrabold text-gray-900 uppercase text-center",children:"Frequently asked questions"}),e.jsx("div",{className:"pt-8 text-left border-t border-gray-200",children:i.map(t=>e.jsxs("div",{className:"mb-10",children:[e.jsxs("h3",{className:"flex items-center mb-4 text-lg font-medium text-gray-900",children:[e.jsx("svg",{className:"flex-shrink-0 mr-2 w-5 h-5 text-gray-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})}),t.question]}),e.jsx("p",{className:"text-gray-500",children:t.answer})]},t.id))})]})})]})};export{p as default};
