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 () => {
27 <Grid gap={4} className="mb10">
29 <Text className={cn(TEXT_STYLE, 'block mb4')}>
30 Welcome <code>{pointName}</code>,
33 <Text className={cn(TEXT_STYLE, 'block mb2')}>
34 As of this moment, you own a piece of Urbit. No one can take it from
35 you, and you can keep it for the rest of your life.
37 <Text className={cn(TEXT_STYLE, 'block mb2')}>
38 Keep your Master Ticket safe. No one can recover it for you. But it
39 can get you back into Urbit at any time.
41 <Text className={cn(TEXT_STYLE, 'block mb2')}>
49 href="https://urbit.org/docs/getting-started/">
50 <Text className={cn(TEXT_STYLE, 'block mb2')}>
51 Boot Arvo, the Urbit OS
56 <Text className={cn(TEXT_STYLE, 'block mb4')}>
57 Welcome to Urbit. See you online.
60 <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