import"react";import{Box as x,Button as p,Text as g}from"@chakra-ui/react";import{jsx as e,jsxs as u}from"react/jsx-runtime";var m=({validators:i,fullWidth:n=!1,...l})=>{let r=i.find(f=>!f.should),a={...l,...r?.fallbackProps},{children:t,onClick:d,disabled:s,helperText:o,isLoading:c=!1}=a;return u(x,{style:{textAlign:"center"},children:[e(p,{w:n?"full":"",variant:"primary",onClick:d,isDisabled:s,isLoading:c,loadingText:t,children:t}),o&&e(g,{color:"foreground",fontSize:"12px",textAlign:"center",mb:"10px",lineHeight:1,mt:2,children:o})]})},T=m;export{T as default};
