1import React, { useCallback } from 'react';
2import { Grid, Button } from 'indigo-react';
4import { usePointCursor } from 'store/pointCursor';
6import * as need from 'lib/need';
7import { useLocalRouter } from 'lib/LocalRouter';
8import useInvites from 'lib/useInvites';
10import { ForwardButton } from 'components/Buttons';
11import FooterButton from 'components/FooterButton';
13export default function InviteUrl() {
14 const { names, push } = useLocalRouter();
15 const { pointCursor } = usePointCursor();
16 const point = need.point(pointCursor);
17 const { availableInvites } = useInvites(point);
18 const canInvite = availableInvites.matchWith({
20 Just: p => p.value > 0,
23 const pushEmail = useCallback(() => push(names.EMAIL), [push, names]);
27 <Grid className="mt3">
31 detail="Generate a URL to send to one guest"
33 disabled={!canInvite || true}>
40 detail="Send invitation to your guest's email"
47 detail="i.e. Ethereum Address, Text File"
48 disabled={!canInvite || true}>
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