"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TabsTextContent = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const grid_1 = require("../../../gravity-blocks/grid/index.js");
const sub_blocks_1 = require("../../../sub-blocks/index.js");
const utils_1 = require("../../../utils/index.js");
const b = (0, utils_1.block)('tabs-block-text-content');
const TabsTextContent = ({ centered, contentSize = 's', showMedia, data, imageProps, isReverse, }) => {
    if (!data) {
        return null;
    }
    const { media, title, text, additionalInfo, link, links, buttons, list } = data;
    return ((0, jsx_runtime_1.jsx)(grid_1.Col, { sizes: { all: 12, md: showMedia ? 4 : 8 }, className: b({ centered: centered }), children: (0, jsx_runtime_1.jsx)("div", { className: b('wrapper', {
                reverse: isReverse,
                'no-image': !(media || imageProps),
            }), children: (0, jsx_runtime_1.jsx)(sub_blocks_1.Content, { title: title, text: text, additionalInfo: additionalInfo, size: contentSize, list: list, links: [...(link ? [link] : []), ...(links || [])], buttons: buttons, colSizes: { all: 12 } }) }) }));
};
exports.TabsTextContent = TabsTextContent;
exports.default = exports.TabsTextContent;
//# sourceMappingURL=TabsTextContent.js.map
