/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 */
import { Badge, Box, KeyValuePair, Toggle } from 'aws-northstar';
import React from 'react';
import startCase from 'lodash/startCase';
export interface ControlledKeyValuePairProps {
label: string;
value: any;
}
const getValueTemplate = (value: any) => {
if (Array.isArray(value)) {
return value.map((q, idx) => (
));
}
if (value === true || value === false) {
return ;
}
return value;
};
export const ControlledKeyValuePair: React.FC = ({ label, value }) => {
return ;
};