Files
klz-cables.com/.pnpm-store/v10/files/32/b6894ee131ac2097574fec0b48015779201e1b131d46e68173c2d6fd59819564b7422afb9b31837df7467cd6fb0ec8867ed38741bf167b137413b1d77e75fc
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

31 lines
620 B
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { useFormFields } from '../Form/context.js';
export const WatchCondition = props => {
const $ = _c(2);
const {
children,
path
} = props;
let t0;
if ($[0] !== path) {
t0 = t1 => {
const [fields] = t1;
return fields && fields?.[path] || null;
};
$[0] = path;
$[1] = t0;
} else {
t0 = $[1];
}
const field = useFormFields(t0);
const {
passesCondition
} = field || {};
if (passesCondition === false) {
return null;
}
return children;
};
//# sourceMappingURL=WatchCondition.js.map