This commit is contained in:
Manav Rathi
2025-02-28 15:49:00 +05:30
parent 67dc1b77d4
commit dce95ad4f1
2 changed files with 23 additions and 1 deletions

View File

@@ -266,6 +266,16 @@ const FileViewer: React.FC<FileViewerProps> = ({
: undefined;
}, [onSelectPerson, handleClose]);
const handleMore = useCallback(
(
annotatedFile: FileViewerAnnotatedFile,
buttonElement: HTMLElement,
) => {
console.log({ annotatedFile, buttonElement });
},
[],
);
const handleEditImage = useMemo(() => {
return onSaveEditedImageCopy
? (annotatedFile: FileViewerAnnotatedFile) => {
@@ -336,6 +346,7 @@ const FileViewer: React.FC<FileViewerProps> = ({
onClose: handleClose,
onAnnotate: handleAnnotate,
onViewInfo: handleViewInfo,
onMore: handleMore,
onEditImage: handleEditImage,
});