"use strict";

import { Body } from "./Body";
import { jsx as _jsx } from "react/jsx-runtime";
export const ComposedBodyFromArray = ({
  body,
  textAlign = "center"
}) => /*#__PURE__*/_jsx(Body, {
  style: {
    textAlign
  },
  children: body.map(({
    text,
    key,
    ...props
  }, i) => /*#__PURE__*/_jsx(Body, {
    ...props,
    children: text
  }, key ?? `OpResScreen_${i}`))
});
//# sourceMappingURL=ComposedBodyFromArray.js.map