Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private getTooltipContent() {
const { timezone } = this.props;
if (timezone == null || timezone.length === 0) {
return "No selection";
}
const { abbreviation, offsetAsString } = getTimezoneMetadata(timezone);
return (
<span>
GMT {offsetAsString}
<span style="{{">{abbreviation ? ` (${abbreviation})` : ""}</span>
</span>
);
}