azure-devops-ui
Version:
React components for building web UI in Azure DevOps
15 lines (14 loc) • 922 B
JavaScript
import "../../CommonImports";
import "../../Core/core.css";
import "./IdentityCard.css";
import * as React from "react";
import { Icon } from '../../Icon';
import { Link } from '../../Link';
export const CardContactLine = (props) => {
return (React.createElement("div", { className: "bolt-identity-default-card-contact-line-wrapper flex-row" },
React.createElement(Icon, { iconName: props.iconName, className: "bolt-identity-default-card-contact-line-label font-size" }),
props.link && (React.createElement(Link, { className: "flex-row word-wrap", href: props.link, removeUnderline: true },
props.hiddenLabel && (React.createElement("span", { className: "screen-reader-only" }, props.hiddenLabel)),
props.content)),
!props.link && React.createElement("span", { className: "bolt-identity-default-card-contact-line-no-link word-wrap" }, props.content)));
};