UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

11 lines (10 loc) 1.55 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; export function FaqSection({ isLoading, sectionData, cssClassName }) { if (isLoading) { return (_jsx("div", { className: "skeleton-loader d-flex justify-content-center mb-4", children: _jsxs("svg", { width: "808", height: "437", viewBox: "0 0 808 437", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "148", width: "496", height: "38", fill: "#F0F0F0" }), _jsx("rect", { y: "99", width: "808", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "128", width: "738", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "157", width: "808", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "231", width: "808", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "260", width: "738", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "289", width: "808", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "363", width: "808", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "392", width: "738", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "421", width: "808", height: "16", fill: "#F0F0F0" })] }) })); } if (!Array.isArray(sectionData) || sectionData?.length === 0) { return null; } return (_jsx("div", { className: `container ${cssClassName}`, children: sectionData.map((item, index) => (_jsx("div", { className: "row pb-2", children: _jsxs("div", { className: "col-md-12 col-lg-10", children: [_jsx("h6", { children: item.question }), _jsx("p", { children: item.answer })] }) }, index))) })); }