UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

11 lines (8 loc) 408 B
'use client' import { cloneElement } from 'react'; import { classNames } from '../../utils/functions/classNames/classNames.js'; const Icon = ({ children, className = '', color, size, }) => { const effectiveClassName = classNames(className, color ? `icon--color-${color}` : '', size ? `icon--size-${size}` : ''); return cloneElement(children, { className: effectiveClassName }); }; export { Icon };