/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: MIT-0 */ import { FunctionComponent } from 'react' import NSContainer, { ContainerProps as NSContainerProps } from 'aws-northstar/layouts/Container' import { InfoPopover, InfoPopoverProps } from '../../InfoPopover' type ContainerProps = NSContainerProps & InfoPopoverProps export const Container: FunctionComponent = ({ infoKey, infoHeader, infoValues, infoPopoverVariant, actionGroup, ...containerProps }) => { if (infoKey == null) { return } let actionGroupWithInfo = null const infoPopover = ( ) if (actionGroup == null) { actionGroupWithInfo = infoPopover } else { actionGroupWithInfo = ( <> {actionGroup} {infoPopover} ) } return }