1import React, { useCallback } from 'react';
2import cn from 'classnames';
3import ob from 'urbit-ob';
4import { Grid, Text, LinkButton } from 'indigo-react';
6import useWasGreeted from 'lib/useWasGreeted';
8const TEXT_STYLE = 'f5';
10export default function ActivateDisclaimer({ point }) {
11 const [wasGreeted, setWasGreeted] = useWasGreeted();
13 const pointName = ob.patp(point);
15 const dismiss = useCallback(async () => {
24 <Grid gap={4} className="mb10">
26 <Text className={cn(TEXT_STYLE, 'block mb4')}>
27 Welcome <span className="mono">{pointName}</span>,
30 <Text className={cn(TEXT_STYLE, 'block mb2')}>
31 As of this moment, you own a piece of Urbit. No one can take it from
32 you, and you can keep it for the rest of your life.
34 <Text className={cn(TEXT_STYLE, 'block mb2')}>
35 Keep your Master Ticket safe. No one can recover it for you. But it
36 can get you back into Urbit at any time.
38 <Text className={cn(TEXT_STYLE, 'block mb2')}>Right now you can:</Text>
41 <Grid.Item full as={LinkButton} href="https://urbit.org/getting-started">
42 <Text className={cn(TEXT_STYLE, 'block mb2')}>
43 Boot Arvo, the Urbit OS
48 <Text className={cn(TEXT_STYLE, 'block mb4')}>
49 Welcome to Urbit. See you online.
52 <Grid.Item full as={LinkButton} onClick={dismiss}>
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