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

19 lines
426 B
Plaintext

'use client';
import { useDocumentInfo } from '@payloadcms/ui';
export const ShouldRenderTabs = t0 => {
const {
children
} = t0;
const {
id: idFromContext,
collectionSlug,
globalSlug
} = useDocumentInfo();
const id = idFromContext !== "create" ? idFromContext : null;
if (collectionSlug && id || globalSlug) {
return children;
}
return null;
};
//# sourceMappingURL=ShouldRenderTabs.js.map