aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/Common/IconButton.js
blob: f6fff30f9cc9149f5ad2fd658ba97aa7de9df2fa (plain)
1
2
3
4
5
6
7
8
9
import Icon from './Icon'

export default function IconButton({ brand, icon, text, children, onClick }) {
  return (
    <button onClick={onClick}>
      <Icon brand={brand} name={icon} /> {text || children}
    </button>
  )
}