Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

678 B
Raw Blame
import { DownloadStatusNotifications } from "ente-gallery/components/DownloadStatusNotifications";
import type { ComponentProps } from "react";
import { usePhotosNavigation } from "../navigation/PhotosNavigationContext";

export const GalleryDownloadNotifications = (
    props: Omit<
        ComponentProps<typeof DownloadStatusNotifications>,
        "onShowCollectionSummary"
    >,
) => {
    const { showCollectionSummary } = usePhotosNavigation();
    return (
        <DownloadStatusNotifications
            {...props}
            onShowCollectionSummary={(id, isHidden) => {
                void showCollectionSummary(id, isHidden);
            }}
        />
    );
};