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
30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
import type { FolderOrDocument } from 'payload/shared';
|
|
import React from 'react';
|
|
import './index.scss';
|
|
type Props = {
|
|
readonly className?: string;
|
|
readonly disabled?: boolean;
|
|
readonly folderType?: string[];
|
|
readonly id: number | string;
|
|
readonly isDeleting?: boolean;
|
|
readonly isFocused?: boolean;
|
|
readonly isSelected?: boolean;
|
|
readonly itemKey: string;
|
|
readonly onClick?: (e: React.MouseEvent) => void;
|
|
readonly onKeyDown?: (e: React.KeyboardEvent) => void;
|
|
readonly PopupActions?: React.ReactNode;
|
|
readonly previewUrl?: string;
|
|
readonly selectedCount?: number;
|
|
readonly title: string;
|
|
readonly type: 'file' | 'folder';
|
|
};
|
|
export declare function FolderFileCard({ id, type, className, disabled, folderType, isDeleting, isFocused, isSelected, itemKey, onClick, onKeyDown, PopupActions, previewUrl, selectedCount, title, }: Props): React.JSX.Element;
|
|
type ContextCardProps = {
|
|
readonly className?: string;
|
|
readonly index: number;
|
|
readonly item: FolderOrDocument;
|
|
readonly type: 'file' | 'folder';
|
|
};
|
|
export declare function ContextFolderFileCard({ type, className, index, item }: ContextCardProps): React.JSX.Element;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |