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
33 lines
1020 B
Plaintext
33 lines
1020 B
Plaintext
import type { Data, FileSizes, SanitizedCollectionConfig } from 'payload';
|
|
import React from 'react';
|
|
type SharedFileDetailsProps = {
|
|
collectionSlug: string;
|
|
customUploadActions?: React.ReactNode[];
|
|
doc: {
|
|
sizes?: FileSizes;
|
|
} & Data;
|
|
enableAdjustments?: boolean;
|
|
hasImageSizes?: boolean;
|
|
hideRemoveFile?: boolean;
|
|
imageCacheTag?: string;
|
|
uploadConfig: SanitizedCollectionConfig['upload'];
|
|
};
|
|
type StaticFileDetailsProps = {
|
|
draggableItemProps?: never;
|
|
handleRemove?: () => void;
|
|
hasMany?: never;
|
|
isSortable?: never;
|
|
removeItem?: never;
|
|
rowIndex?: never;
|
|
};
|
|
type DraggableFileDetailsProps = {
|
|
handleRemove?: never;
|
|
hasMany: boolean;
|
|
isSortable?: boolean;
|
|
removeItem?: (index: number) => void;
|
|
rowIndex: number;
|
|
};
|
|
export type FileDetailsProps = (DraggableFileDetailsProps | StaticFileDetailsProps) & SharedFileDetailsProps;
|
|
export declare const FileDetails: React.FC<FileDetailsProps>;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |