import{__assign as e}from"tslib";import{jsx as r,jsxs as a}from"react/jsx-runtime";import{Search as n}from"lucide-react";import t from"../styles/Sidebar.module.css.js";var s=function(s){var c=s.value,o=s.onChange,i=s.placeholder,l=void 0===i?"Search for Rule sets..":i,h=s.searchCount;return r("div",e({className:t.searchContainer},{children:r("div",e({className:t.searchWrapper},{children:a("div",e({className:"".concat(t.searchInputWrapper," ").concat(c?"pr-2":"")},{children:[r(n,{size:16,className:t.searchIcon}),r("input",{type:"text",placeholder:l,value:c,onChange:function(e){return o(e.target.value)},className:t.searchInput}),c&&a("div",e({className:t.searchRightContainer},{children:["number"==typeof h&&r("span",e({className:t.searchCountBadge},{children:h})),r("button",e({onClick:function(){return o("")},className:t.searchClearButton},{children:a("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[r("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}))}))]}))]}))}))}))};export{s as default};
//# sourceMappingURL=SidebarSearch.js.map
