import React from "react" ; import "./WidgetTooltip.scss" ; export type WidgetTooltipProps = { children ? : React . ReactNode ; message ? : string ; toLeft ? : boolean ; } ; const WidgetTooltip = ( { children , message = "" , toLeft = false } ) => { return ( < div className = "widget-tooltip" > { children } { message ? ( < div className = { `widget-tooltip-message${ toLeft ? " toLeft" : "" }` } > { message } < /div>) : (undefined)} < /div>); } ; export { WidgetTooltip } ;