1 import { c } from 'ttag';
3 import { Dropdown, DropdownButton, DropdownMenu, DropdownMenuButton, Icon, usePopperAnchor } from '@proton/components';
5 export default function DownloadLogsButton({ onClick }: { onClick: () => void }) {
6 const { anchorRef, isOpen, toggle, close } = usePopperAnchor<HTMLButtonElement>();
15 className="transfers-manager-list-item-controls-button"
17 <Icon size={3} name="wrench" alt={'More'} />
19 <Dropdown isOpen={isOpen} anchorRef={anchorRef} onClose={close}>
21 <DropdownMenuButton className="text-left" onClick={onClick}>
22 {c('Action').t`Download logs`}