HEX
Server: LiteSpeed
System: Linux premium212.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: vitanhod (1367)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //home/vitanhod/barnabites.es/wp-content/themes/rishi/inc/dashboard/components/icon-link/index.js
const Icon = ({href, icon, ...rest}) => {
    return href ? <a href={href} className="rishi-ad_icon-wrap" {...rest}>{icon}</a> : <span className="rishi-ad_icon-wrap" {...rest}>{icon}</span>;
}

export default (props) => {
    const {className, title, ...rest} = props;
    return (
        <div className={`rishi-ad_icon-link${className && ' '+className || ''}${title && ' has-tooltip' || ''}`}>
            <Icon {...rest}  />
            {
                title && <span className="rishi-ad_tooltip" data-placement="bottom">{title}</span>
            }
        </div>
    )
}