Skip to content

armgit / ente

Public Imported from GitHub
0

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

1.3 KB
Raw Blame
import type { GallerySectionProps } from "../types";
import { LinksView } from "./LinksView";

export const LinksSection = ({
    library,
    operations,
    navigation,
    preferences,
    presentation,
}: GallerySectionProps) => {
    const selectedLinkID = navigation.destination.collectionID;
    return (
        <LinksView
            {...{ presentation, selectedLinkID }}
            user={library.user!}
            collections={library.collections}
            collectionFiles={library.collectionFiles}
            collectionSummaries={library.normalCollectionSummaries}
            hiddenCollectionIDs={library.hiddenCollectionIDs}
            hiddenFileIDs={library.hiddenFileIDs}
            tempDeletedFileIDs={library.tempDeletedFileIDs}
            tempHiddenFileIDs={library.tempHiddenFileIDs}
            uncategorizedCollectionSummaryID={
                library.uncategorizedCollectionSummaryID
            }
            searchQuery={preferences.albumSearchQuery}
            onSearchQueryChange={preferences.setAlbumSearchQuery}
            sortBy={preferences.collectionsSortBy}
            onChangeSortBy={preferences.onChangeCollectionsSortBy}
            setBlockingLoad={operations.setBlockingLoad}
            onRemotePull={operations.onRemotePull}
        />
    );
};