import{jsx as s}from"react/jsx-runtime";import{memo as u,useMemo as c}from"react";import{Dropdown as i}from"../Dropdown/Dropdown.js";import{normalizeText as f}from"../../../utils/index.js";function d({options:t,onChange:n,value:o="",className:a}){const m=c(()=>t.map(e=>({value:e.value,label:e.title||f(e.value)})),[t]);return s(i,{className:a,options:m,value:o,onChange:({value:e})=>{const l=t.find(r=>r.value===e);l&&n(l)},fullWidth:!0})}const C=u(d);export{C as Select};
