/* * 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 DatabaseView = (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.database.database_name} }, { label: "All attributes", id: "attributes", content: All attributes}> } ]} // variant="container" />; }; export default DatabaseView;