import{Button as g,Flex as y}from"@chakra-ui/react";import c from"react";import{FormControl as C,Input as h,InputGroup as I,Text as n}from"@chakra-ui/react";import{jsx as r,jsxs as p}from"react/jsx-runtime";var S=({label:t,error:o,placeholder:e,helperText:a,isInvalid:u,as:f=h,InputLeftAddon:d,...l},s)=>p(C,{isInvalid:u,children:[r(n,{children:t}),p(I,{mt:"2",children:[d,r(f,{placeholder:e,...l,ref:s})]}),a&&r(n,{fontSize:"12",children:a}),o&&r(n,{fontSize:"12",color:"red.300",children:o})]}),m=c.forwardRef(S);import{jsx as i,jsxs as x}from"react/jsx-runtime";var v=({onChangeSearch:t,enterPressed:o,getSuggestions:e})=>x(y,{mt:2,w:"full",children:[i(m,{id:"ud-search",placeholder:"Search for your new domain",onChange:t,onKeyPress:o,size:"md",autoComplete:"off"}),i(g,{size:"md",variant:"primary",cursor:"pointer",onClick:e,ml:3,mt:2,children:"Search"})]}),k=v;export{k as default};
