Files
klz-cables.com/.pnpm-store/v10/files/ce/79693546b71140fc1d35fd3c83fb7623ebe63f4e1f9e9b1c34a724fe85f66194a8cfc7b7939b26a4ff5078777cd4f5a942bc39a2bac6760b946fb08975ebae
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

45 lines
1.3 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { useParams as useNextParams } from 'next/navigation.js';
import React, { createContext, use } from 'react';
const Context = /*#__PURE__*/createContext({});
/**
* @deprecated
* The ParamsProvider is deprecated and will be removed in the next major release. Instead, use the `useParams` hook from `next/navigation` directly. See https://github.com/payloadcms/payload/pull/9581.
* @example
* ```tsx
* import { useParams } from 'next/navigation'
* ```
*/
export const ParamsProvider = t0 => {
const $ = _c(3);
const {
children
} = t0;
const params = useNextParams();
let t1;
if ($[0] !== children || $[1] !== params) {
t1 = _jsx(Context, {
value: params,
children
});
$[0] = children;
$[1] = params;
$[2] = t1;
} else {
t1 = $[2];
}
return t1;
};
/**
* @deprecated
* The `useParams` hook is deprecated and will be removed in the next major release. Instead, use the `useParams` hook from `next/navigation` directly. See https://github.com/payloadcms/payload/pull/9581.
* @example
* ```tsx
* import { useParams } from 'next/navigation'
* ```
*/
export const useParams = () => use(Context);
//# sourceMappingURL=index.js.map