Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
6618 stevensc 1
import React from 'react'
2
 
3
const IconButton = ({
4
  icon: Icon = () => null,
5
  title = '',
6
  color = '#000',
7
  onClick = () => null,
8
  children,
9
  withTitle,
10
  ...rest
11
}) => {
12
  return (
13
    <div
14
      className="feed__share-option position-relative"
15
      onClick={onClick}
16
      {...rest}
17
    >
18
      <Icon style={{ color }} />
19
      {withTitle && <h4>{title}</h4>}
20
      {children}
21
    </div>
22
  )
23
}
24
 
25
export default IconButton