on 513ddcb help sign in
bridge/src/views/Invite/InviteUrl.js
35 lines 941 B history raw
1import React, { useCallback } from 'react';
2import { Grid, Button } from 'indigo-react';
4import { ForwardButton } from 'components/Buttons';
5import FooterButton from 'components/FooterButton';
7export default function InviteUrl({ names, push }) {
8 const pushEmail = useCallback(() => push(names.EMAIL), [push, names]);
10 return (
11 <>
12 <Grid className="mt3">
13 <Grid.Divider />
14 <Grid.Item
15 as={Button}
16 detail="Generate a URL to send to one guest"
17 full
18 disabled>
19 Generate Invite
20 </Grid.Item>
21 <Grid.Divider />
22 <Grid.Item
23 as={ForwardButton}
24 onClick={pushEmail}
25 detail="Send invitation to your guest's email"
26 full>
27 Send Invite via Email
28 </Grid.Item>
29 </Grid>
30 <FooterButton detail="i.e. Ethereum Address, Text File" disabled>
31 Advanced
32 </FooterButton>
33 </>
34 );