芝麻web文件管理V1.00
编辑当前文件:/home/felaukpo/public_html/wp-content/plugins/cartflows/wizard/assets/src/fields/Tooltip.js
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;