"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),r=require("../styles/Sidebar.module.css.js");exports.default=function(n){var t=n.value,i=n.onChange,l=n.placeholder,c=void 0===l?"Search for Rule sets..":l,u=n.searchCount;return s.jsx("div",e.__assign({className:r.default.searchContainer},{children:s.jsx("div",e.__assign({className:r.default.searchWrapper},{children:s.jsxs("div",e.__assign({className:"".concat(r.default.searchInputWrapper," ").concat(t?"pr-2":"")},{children:[s.jsx(a.Search,{size:16,className:r.default.searchIcon}),s.jsx("input",{type:"text",placeholder:c,value:t,onChange:function(e){return i(e.target.value)},className:r.default.searchInput}),t&&s.jsxs("div",e.__assign({className:r.default.searchRightContainer},{children:["number"==typeof u&&s.jsx("span",e.__assign({className:r.default.searchCountBadge},{children:u})),s.jsx("button",e.__assign({onClick:function(){return i("")},className:r.default.searchClearButton},{children:s.jsxs("svg",e.__assign({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:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}))}))]}))]}))}))}))};
//# sourceMappingURL=SidebarSearch.js.map
