Files
klz-cables.com/.pnpm-store/v10/files/5e/b402dbd1b191c1000d1efe3a4ab59d1fa0ec847e9792f56c412e2182510d83a1c12923e043587acf8227f5690cdc5ac4e949e14288fd1a1975a303fe5caf61
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

23 lines
648 B
Plaintext

import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, use } from 'react';
export const ListDrawerContext = /*#__PURE__*/createContext({});
export const ListDrawerContextProvider = ({
children,
...rest
}) => {
return /*#__PURE__*/_jsx(ListDrawerContext, {
value: {
isInDrawer: Boolean(rest.drawerSlug),
...rest
},
children: children
});
};
export const useListDrawerContext = () => {
const context = use(ListDrawerContext);
if (!context) {
throw new Error('useListDrawerContext must be used within a ListDrawerContextProvider');
}
return context;
};
//# sourceMappingURL=Provider.js.map