@mopinion/survey
Version:
Collect customer feedback with the Mopinion survey library
22 lines (21 loc) • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = Section;
var _preact = require("preact");
var _utils = require("../../../utils");
var _excluded = ["children", "block"];
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
function Section(_ref) {
var children = _ref.children,
block = _ref.block,
props = _objectWithoutProperties(_ref, _excluded);
return (0, _preact.h)("p", {
tabIndex: "-1",
id: "section_description_".concat(block.id),
className: "section-description"
}, (0, _utils.mapBrFromString)(block.properties.description));
}
//# sourceMappingURL=Section.js.map