import React from 'react'; import parse from 'html-react-parser'; import './Tooltip.scss'; import { QuestionMarkCircleIcon } from '@heroicons/react/24/outline'; import classnames from 'classnames'; function Tooltip( props ) { const { text, position = 'default', classes = 'text-gray-400', descClass = '', icon = '', } = props; return (
{ '' === icon ? ( ) : ( icon ) } { '' !== text && ( { typeof text === 'string' ? parse( text ) : text } ) }
); } export default Tooltip;