import { jsx, jsxs } from "@emotion/react/jsx-runtime";
//#region src/utils/toReactNodes/stringToNodes.tsx
function stringToNodes(str) {
	return str.split("\n").map((str, i, strArr) => {
		const key = `str-${i}-${str.substr(0, 20)}`;
		return !str && i === strArr.length - 1 ? null : /* @__PURE__ */ jsxs("span", { children: [str.length ? str : null, i < strArr.length - 1 ? /* @__PURE__ */ jsx("br", {}) : null] }, key);
	});
}
//#endregion
export { stringToNodes };
