| Server IP : 172.67.134.116 / Your IP : 216.73.216.40 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/cartflows/wizard/assets/src/fields/ |
Upload File : |
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 (
<div
className={ classnames(
classes,
'wcf-tooltip-icon cursor-pointer ml-1',
'default' !== position
? 'wcf-tooltip-position--' + position
: ''
) }
>
{ '' === icon ? (
<QuestionMarkCircleIcon className={ `w-4 h-4 stroke-2` } />
) : (
icon
) }
{ '' !== text && (
<span className={ `wcf-tooltip-text ${ descClass }` }>
{ typeof text === 'string' ? parse( text ) : text }
</span>
) }
</div>
);
}
export default Tooltip;