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.21 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; export function TitleAndSummarySection({ isLoading, sectionData, cssClassName }) { if (isLoading) { return (_jsx("div", { className: "skeleton-loader d-flex justify-content-center mb-4", children: _jsxs("svg", { width: "808", height: "199", viewBox: "0 0 808 199", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "299", width: "211", height: "38", fill: "#F0F0F0" }), _jsx("rect", { y: "96", width: "808", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "125", width: "738", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "154", width: "808", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "183", width: "738", height: "16", fill: "#F0F0F0" })] }) })); } if (!sectionData) { return null; } return (_jsx("div", { className: `container ${cssClassName}`, children: _jsx("div", { className: "row pt-4 pb-4", children: _jsx("div", { className: "col-md-12", children: _jsxs("div", { className: "pt-4 pb-4", children: [_jsx("h1", { className: "mb-2", children: _jsx("strong", { children: sectionData.title }) }), _jsx("p", { children: sectionData.summary })] }) }) }) })); }