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

37 lines
1.1 KiB
Plaintext

import type { TFunction } from '@payloadcms/translations';
import type { Pill } from '@payloadcms/ui';
type Args = {
currentLocale?: string;
currentlyPublishedVersion?: {
id: number | string;
publishedLocale?: string;
updatedAt: string;
version: {
updatedAt: string;
};
};
latestDraftVersion?: {
id: number | string;
updatedAt: string;
};
t: TFunction;
version: {
id: number | string;
publishedLocale?: string;
version: {
_status?: 'draft' | 'published';
updatedAt: string;
};
};
};
/**
* Gets the appropriate version label and version pill styling
* given existing versions and the current version status.
*/
export declare function getVersionLabel({ currentLocale, currentlyPublishedVersion, latestDraftVersion, t, version, }: Args): {
label: string;
name: 'currentDraft' | 'currentlyPublished' | 'draft' | 'previouslyPublished' | 'published';
pillStyle: Parameters<typeof Pill>[0]['pillStyle'];
};
export {};
//# sourceMappingURL=getVersionLabel.d.ts.map