Files
klz-cables.com/.pnpm-store/v10/files/77/96b81bc9093ac28be3ba36474cce9668547a6a77cbb23e2462d526e31fda36cd4010cb88a7142d45b4b06b3701b1e7cdc781f038cb86febb77a57e53acf343
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

46 lines
1.0 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import React, { createContext, use, useState } from 'react';
export const useStepNav = () => use(Context);
export const Context = /*#__PURE__*/createContext({
setStepNav: () => {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console
console.warn('StepNavProvider is missing; `setStepNav` is a no-op.');
}
},
stepNav: []
});
export const StepNavProvider = t0 => {
const $ = _c(4);
const {
children
} = t0;
let t1;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
t1 = [];
$[0] = t1;
} else {
t1 = $[0];
}
const [stepNav, setStepNav] = useState(t1);
let t2;
if ($[1] !== children || $[2] !== stepNav) {
t2 = _jsx(Context, {
value: {
setStepNav,
stepNav
},
children
});
$[1] = children;
$[2] = stepNav;
$[3] = t2;
} else {
t2 = $[3];
}
return t2;
};
//# sourceMappingURL=context.js.map