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
31 lines
896 B
Plaintext
31 lines
896 B
Plaintext
import type { TypeWithVersion } from 'payload';
|
|
import React from 'react';
|
|
import './index.scss';
|
|
export declare const VersionPillLabel: React.FC<{
|
|
currentlyPublishedVersion?: TypeWithVersion<any>;
|
|
disableDate?: boolean;
|
|
doc: {
|
|
[key: string]: unknown;
|
|
id: number | string;
|
|
publishedLocale?: string;
|
|
updatedAt?: string;
|
|
version: {
|
|
[key: string]: unknown;
|
|
_status: 'draft' | 'published';
|
|
updatedAt: string;
|
|
};
|
|
};
|
|
/**
|
|
* By default, the date is displayed first, followed by the version label.
|
|
* @default false
|
|
*/
|
|
labelFirst?: boolean;
|
|
labelOverride?: React.ReactNode;
|
|
/**
|
|
* @default 'pill'
|
|
*/
|
|
labelStyle?: 'pill' | 'text';
|
|
labelSuffix?: React.ReactNode;
|
|
latestDraftVersion?: TypeWithVersion<any>;
|
|
}>;
|
|
//# sourceMappingURL=VersionPillLabel.d.ts.map |