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.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
import type { CollectionSlug } from 'payload';
|
|
import type { FolderOrDocument } from 'payload/shared';
|
|
import React from 'react';
|
|
import './index.scss';
|
|
type ActionProps = {
|
|
readonly action: 'moveItemsToFolder';
|
|
} | {
|
|
readonly action: 'moveItemToFolder';
|
|
readonly title: string;
|
|
};
|
|
export type MoveToFolderDrawerProps = {
|
|
readonly drawerSlug: string;
|
|
readonly folderAssignedCollections: CollectionSlug[];
|
|
readonly folderCollectionSlug: string;
|
|
readonly folderFieldName: string;
|
|
readonly fromFolderID?: number | string;
|
|
readonly fromFolderName?: string;
|
|
readonly itemsToMove: FolderOrDocument[];
|
|
/**
|
|
* Callback function to be called when the user confirms the move
|
|
*
|
|
* @param folderID - The ID of the folder to move the items to
|
|
*/
|
|
readonly onConfirm: (args: {
|
|
id: null | number | string;
|
|
name: null | string;
|
|
}) => Promise<void> | void;
|
|
readonly populateMoveToFolderDrawer?: (folderID: null | number | string) => Promise<void> | void;
|
|
/**
|
|
* Set to `true` to skip the confirmation modal
|
|
* @default false
|
|
*/
|
|
readonly skipConfirmModal?: boolean;
|
|
} & ActionProps;
|
|
export declare function MoveItemsToFolderDrawer(props: MoveToFolderDrawerProps): React.JSX.Element;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |