import{j as r}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b710.js";import{a as E}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b74.js";import{u as m,b as y,T as C,I as h}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b745.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};

