import{gR as l,gT as c,j as e,a as t,aG as C,Z as n,bp as h,aH as f,gU as F}from"./index-d6499a22.js";import{F as r,K as a}from"./useFeatureFilters-659d6dec.js";const b={"name (A -> Z)":["name",l.string,c.asc],"name (Z -> A)":["name",l.string,c.desc]},Z=({search:x,onSearchChange:p,typeFilters:m,onTypeFiltersChange:d,types:u,onToggleKey:i,keyFilter:s,storageConnectorType:g,enableStorageConnectorFilter:j,setStorageConnectorType:o,sortKey:v,setSortKey:w})=>e.jsx(t,{width:"100%",flexDirection:"column",alignItems:"center",children:e.jsxs(t,{width:"100%",sx:{gap:"20px"},children:[e.jsxs(t,{sx:{gap:"8px"},children:[e.jsx(C,{variant:"white",value:x,icon:n.glass,placeholder:"Find feature",onChange:p}),e.jsx(h,{maxWidth:"180px",width:"max-content",variant:"white",isMulti:!0,value:m,options:u,placeholder:"type",onChange:d,noDataMessage:"type all"})]}),e.jsxs(t,{sx:{gap:"8px"},children:[e.jsx(r,{white:!0,icon:n.primary,checked:s===a.primary,onChange:i(a.primary),children:"Primary Keys Only"}),e.jsx(r,{white:!0,icon:n.partition,checked:s===a.partition,onChange:i(a.partition),children:"Partition Keys Only"}),e.jsx(r,{white:!0,icon:n.time,checked:s===a.eventTime,onChange:i(a.eventTime),children:"Event Time Only"})]}),j&&o?e.jsx(t,{ml:"20px",alignItems:"center",children:e.jsx(f,{value:g||null,options:Object.values(F),onChange:y=>o(y),flexDirection:"row",mr:"10px"})}):null,e.jsx(h,{width:"max-content",variant:"white",value:[v],ml:"auto",options:Object.keys(b),placeholder:"sort by",onChange:w})]})});export{Z as F,b as s};
