on 06b6de4 help sign in
bridge/src/components/Buttons.js
28 lines 916 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 = props => <Button accessory="↓" {...props} />;
10export const RestartButton = props => <Button accessory="↺" solid {...props} />;
11export const GenerateButton = props => (
12 <Button accessory="○" solid {...props} />
13);
14export const OutButton = props => (
15 <Button as="a" target="_blank" accessory="↗" {...props} />
16);
18export const OfflineButton = props => (
19 <OutButton {...props} href="https://github.com/urbit/bridge/releases">
20 Offline
21 </OutButton>
22);
24export const BootArvoButton = props => (
25 <ForwardButton detail="Boot your computer" {...props}>
26 Boot Arvo
27 </ForwardButton>
28);