import i from"react";import{Select as S,Text as r}from"@chakra-ui/react";import{jsx as e,jsxs as n}from"react/jsx-runtime";var m=({label:a,options:l,error:t,...c},p)=>n("div",{children:[e(r,{children:a}),e(S,{placeholder:"Select option",...c,ref:p,children:l?.map(({label:d,value:o},f)=>e("option",{value:o,children:d},`${o}_${f}`))}),t&&e(r,{color:"red.300",children:t})]}),x=i.forwardRef(m);export{x as default};
