"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ComposedBodyFromArray = void 0;
var _Body = require("./Body");
var _jsxRuntime = require("react/jsx-runtime");
const ComposedBodyFromArray = ({
  body,
  textAlign = "center"
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Body.Body, {
  style: {
    textAlign
  },
  children: body.map(({
    text,
    key,
    ...props
  }, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Body.Body, {
    ...props,
    children: text
  }, key ?? `OpResScreen_${i}`))
});
exports.ComposedBodyFromArray = ComposedBodyFromArray;
//# sourceMappingURL=ComposedBodyFromArray.js.map