1 import { Button } from '@proton/atoms';
2 import { Icon, Tooltip } from '@proton/components';
3 import clsx from '@proton/utils/clsx';
5 import type { TransfersManagerButtonsProps } from './interfaces';
7 const Buttons = ({ className, buttons, id, children }: TransfersManagerButtonsProps) => {
8 const elClassName = clsx(['flex flex-nowrap justify-end', className]);
11 <div className={elClassName} id={id}>
13 {buttons.map(({ disabled, onClick, title, testId, iconName }) => (
14 <Tooltip title={title} key={title}>
20 className="transfers-manager-list-item-controls-button rtl:mirror"
21 data-testid={testId ? testId : undefined}
23 <Icon size={3} name={iconName} alt={title} />
31 export default Buttons;