// React import { useContext } from 'react'; // Context import { AppContext } from '../App'; // App import isUserAuth from '../../utils/Auth/isUserAuth'; // Cloudscape import { Box, ExpandableSection, HelpPanel, Icon, Link } from '@cloudscape-design/components'; // Router import { useLocation } from 'react-router-dom'; export default function ToolsContent() { const { user } = useContext(AppContext); const location = useLocation(); const defaultHeader = ( AWS HealthImaging Sample Viewer ); if (!isUserAuth(user)) { return Log in for full functionality.; } function Footer({ additionalLinks = [] }) { return (

Learn more

AWS HealthImaging {additionalLinks.map((l) => (

{l.name}

))}
); } const defaultContent = (

Welcome to the sample app!

Explore using the navigation menu on the left side of the page. This pane provides contextually-aware information on each app component.

Select the right arrow above to hide this pane.

); if (location.pathname === '/') { return ( }> {defaultContent} ); } else if (/^\/datastores(\/\w+)?$/.test(location.pathname)) { return ( Datastores} footer={