openreplay/frontend/app/components/ui/Popup/Popup.tsx
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

28 lines
479 B
TypeScript

import React from 'react';
import { Tooltip } from 'react-tippy';
interface Props {
content?: any;
title?: any;
trigger?: any
position?: any
className?: string
[x:string]: any;
}
export default ({
position = 'top',
title='',
className='',
trigger = 'mouseenter',
...props
}: Props) => (
<Tooltip
{ ...props }
className={className}
trigger={trigger}
html={props.content || props.title}
arrow
>
{ props.children }
</Tooltip>
);