1import React, { useCallback } from 'react';
2import cn from 'classnames';
3import ob from 'urbit-ob';
4import { Grid, Text, LinkButton } from 'indigo-react';
6import { useLocalRouter } from 'lib/LocalRouter';
8import useWasGreeted from 'lib/useWasGreeted';
9import useCurrentPermissions from 'lib/useCurrentPermissions';
11const TEXT_STYLE = 'f5';
13export default function ActivateDisclaimer({ point }) {
14 const { push, names } = useLocalRouter();
16 const [wasGreeted, setWasGreeted] = useWasGreeted();
17 const { isActiveOwner } = useCurrentPermissions();
19 const pointName = ob.patp(point);
21 const dismiss = useCallback(async () => {
25 const goInvite = useCallback(() => push(names.INVITE), [push, names]);
29 <Grid gap={4} className="mb10">
31 <Text className={cn(TEXT_STYLE, 'block mb4')}>
32 Welcome <code>{pointName}</code>,
35 <Text className={cn(TEXT_STYLE, 'block mb2')}>
36 As of this moment, you own a piece of Urbit. No one can take it from
37 you, and you can keep it for the rest of your life.
39 <Text className={cn(TEXT_STYLE, 'block mb2')}>
40 Keep your Master Ticket safe. No one can recover it for you. But it
41 can get you back into Urbit at any time.
43 <Text className={cn(TEXT_STYLE, 'block mb2')}>
53 className={'yellow4'}>
54 <Text className={cn(TEXT_STYLE, 'block mb2')}>
63 href="https://urbit.org/docs/getting-started/">
64 <Text className={cn(TEXT_STYLE, 'block mb2')}>
65 Boot Arvo, the Urbit OS
70 <Text className={cn(TEXT_STYLE, 'block mb4')}>
71 Welcome to Urbit. See you online.
74 <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