This commit is contained in:
Manav Rathi
2025-03-17 18:46:30 +05:30
parent 4c1bdcf3d0
commit d58af3f88d
5 changed files with 21 additions and 49 deletions

View File

@@ -236,16 +236,12 @@ export type FileViewerProps = ModalVisibilityProps & {
* Called when the given {@link file} should be downloaded.
*
* If this is not provided then the download action will not be shown.
*
* See also: [Note: File viewer update and dispatch]
*/
onDownload?: (file: EnteFile) => void;
/**
* Called when the given {@link file} should be deleted.
*
* If this is not provided then the delete action will not be shown.
*
* See also: [Note: File viewer update and dispatch]
*/
onDelete?: (file: EnteFile) => Promise<void>;
/**