import{j as r}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf10.js";import{a as E}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf4.js";import{u as m,b as y,T as C,I as h}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf47.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};
