import{j as r}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89263.js";import{a as A}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89262.js";import{u as i,b as E,T as y,I as C}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c892655.js";function T({id:e,titulo:n,type:m,placeholder:c,text:j,setText:x,heightCamp:p,heightTextArea:l,position:f,className:t=""}){const u=i(a=>a.deleteContainer),s=i(a=>a.getContainer),o=s(e)(a=>a.emojiArea?.type);A.useEffect(()=>(s(e).setState({emojiArea:{id:e,titulo:n,type:m,placeholder:c,text:j,setText:x,heightCamp:p,heightTextArea:l,position:f,className:t}}),()=>{u(e)}),[]);const d={input:r.jsx(C,{id:e}),textarea:r.jsx(y,{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:d[o]}),r.jsx(E,{id:e})]})]})}export{T as E};
