/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import React from 'react'; import { Tabs, SpaceBetween, ColumnLayout, Container, Header } from '@awsui/components-react'; import TextAttribute from '../components/ui_attributes/TextAttribute.jsx' import AllViewerAttributes from '../components/ui_attributes/AllViewerAttributes.jsx' import ItemTable from './ItemTable.jsx' import Audit from "./ui_attributes/Audit"; const ApplicationView = (props) => { function handleOnTabChange(activeTabId) { if (props.handleTabChange) { props.handleTabChange(activeTabId); } } function selectedTab() { if (props.selectedTab) { return props.selectedTab; } else { return null; } } return handleOnTabChange(detail.activeTabId)} tabs={[ { label: "Details", id: "details", content: Details}> {props.app.app_name} {props.app.wave_id ? props.app.wave_id : '-'} }, { label: "Servers", id: "servers", content: }, { label: "Wave", id: "wave", content: Wave}> }, { label: "All attributes", id: "attributes", content: All attributes}> } ]} />; }; export default ApplicationView;