on 6ecd461 help sign in
bridge/src/components/DownloadKeyfileButton.js
32 lines 645 B history raw
1import React from 'react';
2import { B } from 'indigo-react';
4import { DownloadButton } from 'components/Buttons';
6export default function DownloadKeyfileButton({
7 // useKeyfileGenerator.bind
8 generating,
9 available,
10 downloaded,
11 download,
12 notice,
14 // from caller
15 className,
16 ...rest
17}) {
18 return (
19 <DownloadButton
20 as="span"
21 className={className}
22 disabled={downloaded || !available}
23 disabledDetail={
24 !available && <B className="wrap ws-normal">· {notice}</B>
25 }
26 loading={generating}
27 onClick={download}
28 {...rest}>
29 Download Arvo Keyfile
30 </DownloadButton>
31 );