import{j as r}from"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec510.js";import{a as E}from"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec54.js";import{u as m,b as y,T as C,I as h}from"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec547.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};
