Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / applications / drive / src / app / components / TransferManager / interfaces.ts
blob536d4ba3f2550973e93ac0aea9e82c34db8ae952
1 import type { ReactNode } from 'react';
3 import type { IconName } from '@proton/components';
5 import type { Download, TransferType, Upload } from './transfer';
7 export interface TransferProps<T extends TransferType> {
8     transfer: T extends TransferType.Download ? Download : Upload;
9     type: T;
12 export interface TransferManagerButtonProps {
13     disabled?: boolean;
14     testId?: string;
15     title: string;
16     onClick: () => void;
17     iconName: IconName;
20 export interface TransfersManagerButtonsProps {
21     buttons: TransferManagerButtonProps[];
22     className?: string;
23     id?: string;
24     children?: ReactNode;