Files
klz-cables.com/.pnpm-store/v10/files/61/4377b08144b41ac264b13221f8cc18110ee0a6b92cb78d4e66928341bfe8989d4e994ff7e75b867a70b0a7441df2060f01b800618f46211b1535edce12993f
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

47 lines
1.1 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import React from 'react';
import { SearchIcon } from '../../../../icons/Search/index.js';
import { useTranslation } from '../../../../providers/Translation/index.js';
import './index.scss';
const baseClass = 'block-search';
export const BlockSearch = props => {
const $ = _c(5);
const {
setSearchTerm
} = props;
const {
t
} = useTranslation();
let t0;
if ($[0] !== setSearchTerm) {
t0 = e => {
setSearchTerm(e.target.value);
};
$[0] = setSearchTerm;
$[1] = t0;
} else {
t0 = $[1];
}
const handleChange = t0;
let t1;
if ($[2] !== handleChange || $[3] !== t) {
t1 = _jsxs("div", {
className: baseClass,
children: [_jsx("input", {
className: `${baseClass}__input`,
onChange: handleChange,
placeholder: t("fields:searchForBlock")
}), _jsx(SearchIcon, {})]
});
$[2] = handleChange;
$[3] = t;
$[4] = t1;
} else {
t1 = $[4];
}
return t1;
};
//# sourceMappingURL=index.js.map