/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ import { KeyValuePair, Stack } from 'aws-northstar'; import { StackProps } from 'aws-northstar/layouts/Stack'; import { isEmpty } from 'lodash'; import React from 'react'; interface KeyValuePairStackProps { properties?: Record; spacing?: StackProps['spacing']; } export const KeyValuePairStack: React.FC = ({ properties, spacing }) => { if (properties == null || isEmpty(properties)) return null; return ( {Object.entries(properties).map(([label, value], i) => { return ; })} ); };