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

29 lines
714 B
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import React, { createContext, use } from 'react';
export const EditDepthContext = /*#__PURE__*/createContext(0);
export const EditDepthProvider = t0 => {
const $ = _c(3);
const {
children
} = t0;
const parentDepth = useEditDepth();
const depth = parentDepth + 1;
let t1;
if ($[0] !== children || $[1] !== depth) {
t1 = _jsx(EditDepthContext, {
value: depth,
children
});
$[0] = children;
$[1] = depth;
$[2] = t1;
} else {
t1 = $[2];
}
return t1;
};
export const useEditDepth = () => use(EditDepthContext);
//# sourceMappingURL=index.js.map