/* * 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 WaveView = (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.wave.wave_name} {props.wave.wave_id} }, { label: "Servers", id: "servers", content: }, { label: "Applications", id: "applications", content: }, { label: "Jobs", id: "jobs", content: }, { label: "All attributes", id: "attributes", content: All attributes}> } ]} />; }; export default WaveView;