1import React from 'react';
3import { DownloadButton } from 'components/Buttons';
4import Blinky from 'components/Blinky';
6import { usePointCursor } from 'store/pointCursor';
8import useKeyfileGenerator from 'lib/useKeyfileGenerator';
9import * as need from 'lib/need';
11export default function DownloadKeyfileButton({ className, ...rest }) {
12 const { pointCursor } = usePointCursor();
13 const point = need.point(pointCursor);
19 } = useKeyfileGenerator(point);
24 disabled={downloaded || !available}
25 accessory={generating ? <Blinky /> : undefined}
26 onClick={generateAndDownload}
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