From a8e06372af056964d7de614f00a363a9137133b3 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 12 Mar 2025 14:19:39 +0530 Subject: [PATCH] sketch --- web/apps/photos/src/components/FileListWithViewer.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/apps/photos/src/components/FileListWithViewer.tsx b/web/apps/photos/src/components/FileListWithViewer.tsx index 8588b921c6..118925a3d1 100644 --- a/web/apps/photos/src/components/FileListWithViewer.tsx +++ b/web/apps/photos/src/components/FileListWithViewer.tsx @@ -176,6 +176,15 @@ export const FileListWithViewer: React.FC = ({ : undefined; }, [onMarkTempDeleted]); + const handleToggleArchive = useMemo(() => { + // TODO(AR): + return favoriteFileIDs + ? (file: EnteFile) => { + console.log("toggle archive", file); + } + : undefined; + }, [favoriteFileIDs]); + const handleSaveEditedImageCopy = useCallback( (editedFile: File, collection: Collection, enteFile: EnteFile) => { uploadManager.prepareForNewUpload();