"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FAQS = void 0;
const react_1 = __importDefault(require("react"));
const markdown_to_jsx_1 = __importDefault(require("markdown-to-jsx"));
const AccordionWrap_1 = require("../accordion/AccordionWrap");
const AccordionTab_1 = require("../accordion/AccordionTab");
const FAQS = ({ content }) => {
    const faqs = content.map((item, index) => {
        return (react_1.default.createElement(AccordionTab_1.AccordionTab, { accordionStyle: "plain", className: "faq-item", label: item.faq, key: index, startOpen: true },
            react_1.default.createElement(markdown_to_jsx_1.default, null, item.answer)));
    });
    return (react_1.default.createElement(react_1.default.Fragment, null,
        react_1.default.createElement(AccordionWrap_1.AccordionWrap, { className: "faqs-accordion" },
            react_1.default.createElement("div", { className: "container faqs" },
                react_1.default.createElement("h1", null, "FAQ's"),
                faqs))));
};
exports.FAQS = FAQS;
