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

39 lines
908 B
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';
const ActionsContext = /*#__PURE__*/createContext({
Actions: {},
setViewActions: () => {}
});
export const useActions = () => use(ActionsContext);
export const ActionsProvider = t0 => {
const $ = _c(4);
const {
Actions,
children
} = t0;
const [viewActions, setViewActions] = useState(Actions);
let t1;
if ($[0] !== Actions || $[1] !== children || $[2] !== viewActions) {
t1 = _jsx(ActionsContext, {
value: {
Actions: {
...viewActions,
...Actions
},
setViewActions
},
children
});
$[0] = Actions;
$[1] = children;
$[2] = viewActions;
$[3] = t1;
} else {
t1 = $[3];
}
return t1;
};
//# sourceMappingURL=index.js.map