openreplay/frontend/app/components/ui/HelpText/HelpText.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

19 lines
461 B
TypeScript

import React from 'react'
import { Icon, Popup } from 'UI'
interface Props {
text: string,
className?: string,
position?: string,
}
export default function HelpText(props: Props) {
const { text, className = '', position = 'top center' } = props
return (
<div>
<Popup content={text} >
<div className={className}><Icon name="question-circle" size={16} /></div>
</Popup>
</div>
)
}