/* * 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, Box, Header } from '@awsui/components-react'; import Audit from "../components/ui_attributes/Audit.jsx"; import AllViewerAttributes from '../components/ui_attributes/AllViewerAttributes.jsx' const ValueWithLabel = ({ label, children }) => (
{label}
{children}
); const ServerView = (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.server.server_name} // // // // // }, { label: "Application", id: "application", content: Application}> }, { label: "All attributes", id: "attributes", content: All attributes}> } ]} // variant="container" />; }; export default ServerView;