openreplay/frontend/app/components/ui/QuestionMarkHint/QuestionMarkHint.js
2021-05-01 15:12:01 +05:30

16 lines
No EOL
416 B
JavaScript

import cn from "classnames";
import { Icon, Popup } from 'UI';
export default function QuestionMarkHint({ onHover = false, content, className, ...props }) {
return (
<Popup
on={ onHover ? 'hover' : 'click'}
content={ content }
inverted
trigger={
<Icon name="question-circle" size="18" className={ cn("cursor-pointer", className) }/>
}
{ ...props }
/>
);
}