import{j as o}from"./vendor-react-wBh_31cN.js";import{L as m}from"./LazyMarkdown-B4U4Brg5.js";import"./index-BKr2rJhV.js";import"./vendor-redux-CJZrIb6x.js";import"./vendor-router-D1GqFWiT.js";import"./vendor-utils-OeoE2qq_.js";import"./vendor-icons-BUUmD6ht.js";import"./vendor-radix-BRyWS4bQ.js";import"./vendor-grid-CeFlDWv4.js";const j=({text:r,isUser:t})=>{const e=document.documentElement.classList.contains("dark")?"dark":"light";return r.trim().length===0?null:o.jsx("div",{className:"flex flex-col",children:t?r.split(`
`).map((s,a)=>o.jsx("span",{className:"text-sm",children:s},a)):o.jsx(m,{source:r,style:{fontSize:"80%",backgroundColor:"transparent"},wrapperElement:{"data-color-mode":e}})})};export{j as default};
