1import React, { useState } from 'react';
2import { Just, Nothing } from 'folktale/maybe';
3import * as need from 'lib/need';
5import { usePointCursor } from 'store/pointCursor';
7import View from 'components/View';
8import { DownloadButton } from 'components/Buttons';
9import PaperRenderer from 'components/PaperRenderer';
11import { downloadWallet } from 'lib/invite';
13import { useWallet } from 'store/wallet';
15export default function Redownload() {
16 const { urbitWallet } = useWallet();
17 const { pointCursor } = usePointCursor();
18 const point = need.point(pointCursor);
20 const [paper, setPaper] = useState(Nothing());
22 const doDownload = () => {
23 downloadWallet(paper.value);
26 const paperRenderer = paper.matchWith({
31 wallet={urbitWallet.value}
33 setPaper(Just(paper));
42 disabled={Nothing.hasInstance(paper)}
45 Nothing: () => 'Printing and folding...',
46 Just: _ => 'Download paper wallet',
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