All files / modules/10-common/components/Title TitleWithToolTipId.tsx

100% Statements 5/5
100% Branches 1/1
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 1529x 29x           29x 62x            
import React from 'react'
import { FontVariation, Text, TextProps } from '@harness/uicore'
interface ToolTipTitleProps {
  title: string
  toolTipId?: string
  textProps?: TextProps
}
export const TitleWithToolTipId: React.FC<ToolTipTitleProps> = ({ title, toolTipId, textProps = {} }) => {
  return (
    <Text font={{ variation: FontVariation.H4 }} tooltipProps={{ dataTooltipId: toolTipId }} {...textProps}>
      {title}
    </Text>
  )
}