Files
klz-cables.com/.pnpm-store/v10/files/cc/95a94db57de217f515c1a3cf12c173dd8977aeec3cedd7a9a3e1c309a5027ae3d4336bf0a6e8a869a51a670aeba72ab2c844db3f0a73ca8c80fe31cfc395e9
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

37 lines
1.6 KiB
Plaintext

import { type FolderOrDocument } from 'payload/shared';
import React from 'react';
import type { Props as ButtonProps } from '../../Button/types.js';
import './index.scss';
/**
* This is the button shown on the edit document view. It uses the more generic `MoveDocToFolderButton` component.
*/
export declare function MoveDocToFolder({ buttonProps, className, folderCollectionSlug, folderFieldName, }: {
readonly buttonProps?: Partial<ButtonProps>;
readonly className?: string;
readonly folderCollectionSlug: string;
readonly folderFieldName: string;
}): React.JSX.Element;
type MoveDocToFolderButtonProps = {
readonly buttonProps?: Partial<ButtonProps>;
readonly className?: string;
readonly collectionSlug: string;
readonly docData: FolderOrDocument['value'];
readonly docID: number | string;
readonly docTitle?: string;
readonly folderCollectionSlug: string;
readonly folderFieldName: string;
readonly fromFolderID?: number | string;
readonly fromFolderName: string;
readonly modalSlug: string;
readonly onConfirm?: (args: {
id: number | string;
name: string;
}) => Promise<void> | void;
readonly skipConfirmModal?: boolean;
};
/**
* This is a more generic button that can be used in other contexts, such as table cells and the edit view.
*/
export declare const MoveDocToFolderButton: ({ buttonProps, className, collectionSlug, docData, docID, docTitle, folderCollectionSlug, folderFieldName, fromFolderID, fromFolderName, modalSlug, onConfirm, skipConfirmModal, }: MoveDocToFolderButtonProps) => React.JSX.Element;
export {};
//# sourceMappingURL=index.d.ts.map