import React from "react"; import { EuiDescriptionList, EuiDescriptionListDescription, EuiDescriptionListTitle, } from "@elastic/eui"; import EuiCustomLink from "./EuiCustomLink"; interface TagsDisplayProps { createLink?: (key: string, value: string) => string; tags: Record; owner?: string; description?: string; } const TagsDisplay = ({ tags, createLink, owner, description, }: TagsDisplayProps) => { return ( {owner ? ( owner {owner} ) : ( "" )} {description ? ( description {description} ) : ( "" )} {Object.entries(tags).map(([key, value]) => { return ( {key} {createLink ? ( {value} ) : ( value )} ); })} ); }; export default TagsDisplay;