import{j as r}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{a as A}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import{u as i,b as E,T as C,I as h}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e46.js";function g({id:e,titulo:t,type:m,placeholder:j,text:c,setText:x,heightCamp:p,heightTextArea:l,position:f,className:a=""}){const u=i(n=>n.deleteContainer),s=i(n=>n.getContainer),o=s(e)(n=>n.emojiArea);A.useEffect(()=>(s(e).setState({emojiArea:{id:e,titulo:t,type:m,placeholder:j,text:c,setText:x,heightCamp:p,heightTextArea:l,position:f,className:a}}),()=>{u(e)}),[]);const d={input:r.jsx(h,{id:e}),textarea:r.jsx(C,{id:e})};return o&&r.jsxs("aside",{"type-render":"Components","render-name":"emojiArea",children:[t&&r.jsx("h2",{children:t}),r.jsxs("div",{className:"flex !p-0 "+a,children:[r.jsx("div",{className:"w-full flex",children:d[o.type]}),r.jsx(E,{id:e})]})]})}export{g as E};
