"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const grid_1 = require("../../gravity-blocks/grid/index.js");
const utils_1 = require("../../utils/index.js");
const Anchor_1 = tslib_1.__importDefault(require("../Anchor/Anchor.js"));
const b = (0, utils_1.block)('block-base');
const BlockBase = (props) => {
    const { anchor, indent, visible, children, className, resetPaddings, qa } = props;
    const { top, bottom } = indent || (resetPaddings ? { top: '0', bottom: '0' } : { top: 'l', bottom: 'l' });
    return ((0, jsx_runtime_1.jsxs)(grid_1.Col, { className: b({ ['reset-paddings']: resetPaddings, indentTop: top, indentBottom: bottom }, className), visible: visible, reset: true, qa: qa, children: [anchor && (0, jsx_runtime_1.jsx)(Anchor_1.default, { id: anchor.url, className: b('anchor') }), children] }));
};
exports.default = BlockBase;
//# sourceMappingURL=BlockBase.js.map
