import * as React from "react"; import { Stack, Text, IIconStyles, Icon, TooltipHost, DirectionalHint } from "office-ui-fabric-react"; import { toolTipLabelStackTokens } from "../SettingsRenderUtils"; export interface ToolTipLabelComponentProps { label: string; toolTipElement: JSX.Element; } const iconButtonStyles: Partial = { root: { marginBottom: -3 } }; export class ToolTipLabelComponent extends React.Component { public render(): JSX.Element { return ( <> {this.props.label && {this.props.label}} {this.props.toolTipElement && ( )} ); } }