• Wraps the given text in a span with a tooltip if the tooltip is provided.

    Parameters

    • text: string

      The text to wrap

    • Optionaltooltip: string

      The tooltip to add

    Returns string