import{j as e}from"./ui-vendor-BewJQzBv.js";import{r as t}from"./react-vendor-D6Nbkvjy.js";const r=({text:r,className:s="",speed:a=60})=>{const[n,c]=t.useState("");return t.useEffect(()=>{let e=0;c("");const t=setInterval(()=>{if(e<r.length){const t=r.charAt(e);c(e=>e+t),e++}e>=r.length&&clearInterval(t)},a);return()=>clearInterval(t)},[r,a]),e.jsx("span",{className:s,children:n})};export{r as T};
