Personal Dashboard

Icon.jsx 334B

1234567891011
  1. import react from 'react'
  2. export const Icon = ({ name, size, intent, className, ...otherProps }) => {
  3. const classes = cl({
  4. [`pt-icon-${size}`]: size,
  5. [`pt-icon-${name}`]: name,
  6. [`pt-intent-${intent}`]: intent,
  7. [className]: true
  8. })
  9. return <span className={classes} {...otherProps}></span>
  10. }