import{ay as d,j as e,a5 as x,Y as j,t as u,T as i,bW as h,a6 as m,Q as p}from"./main-D6SjkSWq.js";import{S as I}from"./Sort-On48-68e.js";function g({items:n,sortDescriptor:o,setSortDescriptor:t}){const c=d(),a=`${o.orderBy}:${o.orderDir}`;return e.jsxs(x,{selectionMode:"single",selectedValue:a,onSelectionChange:r=>{const[s,l]=r.split(":");t({orderBy:s,orderDir:l})},children:[c?e.jsx(j,{children:e.jsx(I,{})}):e.jsx(u,{variant:"outline",className:"flex-shrink-0",endIcon:e.jsx(h,{}),children:e.jsx(i,{...n[a]})}),e.jsx(m,{children:Object.entries(n).map(([r,s])=>e.jsx(p,{value:r,children:e.jsx(i,{...s})},r))})]})}export{g as L};
