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
37 lines
1.1 KiB
Plaintext
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 |