/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ import { KeyValuePair } from 'aws-northstar'; import React from 'react'; import type { DataProductIdentifier } from '@ada/api'; export interface RelationshipMappingProps { readonly label: string; readonly relationships?: DataProductIdentifier[]; } export const RelationshipMapping: React.FC = ({ label, relationships }) => { return relationships && relationships.length > 0 ? ( {relationships.map(({ domainId, dataProductId }) => (
  • {`${domainId}.${dataProductId}`}
  • ))} } /> ) : null; };