timeSpentCell.tsx 445 B

12345678910111213141516171819
  1. import {Tooltip} from 'sentry/components/tooltip';
  2. import {getTooltip} from 'sentry/views/starfish/views/spans/types';
  3. export function TimeSpentCell({
  4. formattedTimeSpent,
  5. totalSpanTime,
  6. }: {
  7. formattedTimeSpent: string;
  8. totalSpanTime: number;
  9. }) {
  10. const toolTip = getTooltip('timeSpent', totalSpanTime);
  11. return (
  12. <span>
  13. <Tooltip isHoverable title={toolTip}>
  14. {formattedTimeSpent}
  15. </Tooltip>
  16. </span>
  17. );
  18. }