on e7ae14d help sign in
bridge/src/components/Buttons.js
30 lines 959 B history raw
1import React from 'react';
2import { Button } from 'indigo-react';
3import Blinky from './Blinky';
5// NOTE: the -> is correct because inter recognizes the pair
6export const ForwardButton = ({ loading, ...props }) => (
7 <Button accessory={loading ? <Blinky /> : '->'} {...props} />
8);
9export const DownloadButton = ({ loading, ...props }) => (
10 <Button accessory={loading ? <Blinky /> : '↓'} {...props} />
11);
12export const RestartButton = props => <Button accessory="↺" {...props} />;
13export const GenerateButton = props => (
14 <Button accessory="○" solid {...props} />
15);
16export const OutButton = props => (
17 <Button as="a" target="_blank" accessory="↗" {...props} />
18);
20export const OfflineButton = props => (
21 <OutButton {...props} href="https://github.com/urbit/bridge/releases">
22 Offline
23 </OutButton>
24);
26export const BootArvoButton = props => (
27 <ForwardButton detail="Boot your computer" {...props}>
28 Boot Arvo
29 </ForwardButton>
30);