import React, { useCallback } from 'react'; import cn from 'classnames'; import ob from 'urbit-ob'; import { Grid, Text, LinkButton } from 'indigo-react'; import { useLocalRouter } from 'lib/LocalRouter'; import useWasGreeted from 'lib/useWasGreeted'; import useCurrentPermissions from 'lib/useCurrentPermissions'; const TEXT_STYLE = 'f5'; export default function ActivateDisclaimer({ point }) { const { push, names } = useLocalRouter(); const [wasGreeted, setWasGreeted] = useWasGreeted(); const { isActiveOwner } = useCurrentPermissions(); const pointName = ob.patp(point); const dismiss = useCallback(async () => { setWasGreeted(true); }, [setWasGreeted]); const goInvite = useCallback(() => push(names.INVITE), [push, names]); return ( !wasGreeted && ( Welcome {pointName}, As of this moment, you own a piece of Urbit. No one can take it from you, and you can keep it for the rest of your life. Keep your Master Ticket safe. No one can recover it for you. But it can get you back into Urbit at any time. Right now you can: {isActiveOwner && ( Invite your friends )} Boot Arvo, the Urbit OS Welcome to Urbit. See you online. Close ) ); }