var C=Object.defineProperty,R=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var f=(e,t,r)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))S.call(t,r)&&f(e,r,t[r]);if(l)for(var r of l(t))m.call(t,r)&&f(e,r,t[r]);return e},h=(e,t)=>R(e,$(t));var k=(e,t)=>{var r={};for(var a in e)S.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&l)for(var a of l(e))t.indexOf(a)<0&&m.call(e,a)&&(r[a]=e[a]);return r};import u from"react";import{Select as w,Text as x}from"@chakra-ui/react";import{jsx as c,jsxs as _}from"react/jsx-runtime";var y=(b,T)=>{var o=b,{label:e,options:t,error:r}=o,a=k(o,["label","options","error"]);return _("div",{children:[c(x,{children:e}),c(w,h(p({placeholder:"Select option"},a),{ref:T,children:t==null?void 0:t.map(({label:i,value:d},v)=>c("option",{value:d,children:i},`${d}_${v}`))})),r&&c(x,{color:"red.300",children:r})]})},z=u.forwardRef(y);export{z as default};
