import React from 'react' import {Link, useNavigate} from 'react-router-dom' import {Button, Flex, Heading, Text, useAuthenticator} from '@aws-amplify/ui-react' export default function Home() { const { route, signOut } = useAuthenticator((context) => [ context.route, context.signOut, ]); const navigate = useNavigate(); const logOut = () => { signOut(); navigate('/'); } return ( Welcome to re:Invent racer Select any of the options below. Click on "Join current race" to join the race lobby. {route === 'authenticated' && ( )} ) }