import React, { useCallback } from 'react'; import cn from 'classnames'; import * as 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 very moment, you own an Urbit identity – a digital identity that you can keep for the rest of your life. Use the Master Ticket included in your Passport to access your Urbit identity at any time. Right now you can: {isActiveOwner && ( Invite your friends )} Boot your computer Welcome to Urbit. See you online. Close ) ); }