import{j as u,r}from"./app-CAqQVdqj.js";function i({message:e,className:t="",...n}){return e?u.jsx("p",{...n,className:"text-sm text-red-600 "+t,children:e}):null}const d=r.forwardRef(function({type:t="text",className:n="",isFocused:o=!1,...f},c){const s=r.useRef(null);return r.useImperativeHandle(c,()=>({focus:()=>s.current?.focus()})),r.useEffect(()=>{o&&s.current?.focus()},[o]),u.jsx("input",{...f,type:t,className:"rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 "+n,ref:s})});export{i as I,d as T};
