1import React from 'react';
2import { Flex, B } from 'indigo-react';
4import { usePointCursor } from 'store/pointCursor';
6import useKeyfileGenerator from 'lib/useKeyfileGenerator';
7import * as need from 'lib/need';
9import { DownloadButton } from 'components/Buttons';
11export default function DownloadKeyfileButton({
16 const { pointCursor } = usePointCursor();
17 const _point = need.point(pointCursor);
19 const { generating, available, downloaded, download } = useKeyfileGenerator(
24 const showHelp = !generating && !available;
30 disabled={downloaded || !available}
32 // TODO: make this a toggle-able 'help' or something — too much space
35 <Flex.Item as={B} className="wrap ws-normal">
36 · You are using nondeterministic networking keys. To download your
39 <Flex.Item as={B} className="wrap ws-normal">
40 a) Reset your networking keys, or
42 <Flex.Item as={B} className="wrap ws-normal">
43 b) Reticket to get deterministic networking keys.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list