// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 import { AppLayout, Box, Flashbar, FlashbarProps, Grid, SideNavigationProps } from '@awsui/components-react'; import './home.scss'; import Navigation from '../../layout/navigation/navigation'; import { FC } from 'react'; import { useRecoilValue } from 'recoil'; import { loggedUser } from '../../../state'; /* eslint @typescript-eslint/no-magic-numbers: "off" */ const i18n = { awaitLogin: 'Please wait while we log you in...', }; // eslint-disable-next-line @typescript-eslint/no-empty-interface interface HomeProps { } const homePage: FC = () => { const loggedInUser = useRecoilValue(loggedUser); return ( } navigationOpen={false} toolsHide={true} notifications={renderAuthPendingNotification()} /> ); function renderAuthPendingNotification() { const authPendingNotification: FlashbarProps.MessageDefinition[] = [{ type: 'success', loading: true, content: i18n.awaitLogin, }]; return ; } function renderContent() { return ( <>
Sample Application Welcome to Sample Application Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu f ugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
); } function getItems(): SideNavigationProps.Item[] { return [{ type: 'section', text: 'Home', items: [] } ]; } }; export { homePage as HomePage };