import{j as r}from"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d610.js";import{a as E}from"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d64.js";import{u as m,b as y,T as C,I as h}from"./v_7_4_2_23_80f0be4c-2624-48ff-84de-a733d033e3d645.js";function b({id:e,titulo:n,type:c,placeholder:j,text:x,setText:p,heightCamp:l,heightTextArea:f,position:u,className:t=""}){const d=m(a=>a.deleteContainer),s=m(a=>a.getContainer),o=s(e)(a=>{var i;return(i=a.emojiArea)==null?void 0:i.type});E.useEffect(()=>(s(e).setState({emojiArea:{id:e,titulo:n,type:c,placeholder:j,text:x,setText:p,heightCamp:l,heightTextArea:f,position:u,className:t}}),()=>{d(e)}),[]);const A={input:r.jsx(h,{id:e}),textarea:r.jsx(C,{id:e})};return o&&r.jsxs("aside",{"type-render":"Components","render-name":"emojiArea",children:[n&&r.jsx("h2",{className:"mb-1",children:n}),r.jsxs("div",{className:"flex !p-0 "+t,children:[r.jsx("div",{className:"w-full flex",children:A[o]}),r.jsx(y,{id:e})]})]})}export{b as E};
