Files
klz-cables.com/.pnpm-store/v10/files/ea/3a74a2ee9898a5c3c57e4bd00540a5bb82f465ae562320025277e766c2f5776d98f8e26ef16b309813843f1bd4c172cf96677fd82c800a21ef82128d8834a8
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

26 lines
627 B
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { useId } from 'react';
import { useEditDepth } from '../../providers/EditDepth/index.js';
import { formatDrawerSlug } from './index.js';
export const useDrawerSlug = slug => {
const $ = _c(3);
const uuid = useId();
const editDepth = useEditDepth();
const t0 = `${slug}-${uuid}`;
let t1;
if ($[0] !== editDepth || $[1] !== t0) {
t1 = formatDrawerSlug({
slug: t0,
depth: editDepth
});
$[0] = editDepth;
$[1] = t0;
$[2] = t1;
} else {
t1 = $[2];
}
return t1;
};
//# sourceMappingURL=useDrawerSlug.js.map