import{j as r}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f10.js";import{a as E}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f4.js";import{u as m,b as y,T as C,I as h}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f45.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};
