"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/utils/toReactNodes/stringToNodes.tsx
var _jsxruntime = require('@emotion/react/jsx-runtime');
function stringToNodes(str) {
  return str.split("\n").map((str2, i, strArr) => {
    const key = `str-${i}-${str2.substr(0, 20)}`;
    return !str2 && i === strArr.length - 1 ? null : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
      str2.length ? str2 : null,
      i < strArr.length - 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "br", {}) : null
    ] }, key);
  });
}



exports.stringToNodes = stringToNodes;
