2017-06-29 12:54:02 -06:00
|
|
|
import * as React from "react";
|
2019-04-02 13:59:37 -06:00
|
|
|
import { t } from "../../i18next_wrapper";
|
|
|
|
|
2017-06-29 12:54:02 -06:00
|
|
|
interface SPTTProps {
|
|
|
|
tooltip?: string | undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function SpacePanelToolTip({ tooltip }: SPTTProps) {
|
|
|
|
return (tooltip && <div className="help">
|
|
|
|
<i className="fa fa-question-circle help-icon" />
|
|
|
|
<div className="help-text">
|
2018-02-28 13:12:11 -07:00
|
|
|
{t(tooltip)}
|
2017-06-29 12:54:02 -06:00
|
|
|
</div>
|
|
|
|
</div>) || <span />;
|
|
|
|
}
|