"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const Section = ({ title, subTitle, children }) => {
    const titleMarker = (title || subTitle) && (react_1.default.createElement("div", { className: 'mb-5' },
        title && react_1.default.createElement("h3", { className: 'text-base font-semibold leading-6 text-gray-900' }, title),
        subTitle && title && react_1.default.createElement("p", { className: 'mt-1 text-sm text-slate-500' }, subTitle),
        subTitle && !title && react_1.default.createElement("p", { className: 'text-sm text-slate-500' }, subTitle)));
    return (react_1.default.createElement("div", { className: 'py-5' },
        titleMarker,
        children));
};
exports.default = Section;
//# sourceMappingURL=Section.js.map