aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/Common/Icon.js
blob: 933784f12924aed20f45b1dde5ee5f62f81d6dac (plain)
1
2
3
4
5
6
7
8
9
10
11

const faCollections = {
  brands: 'fab',
  default: 'fa'
}
export default function Icon({ name, collection = 'default' }) {
  const groupClass = faCollections[collection]
  const iconClass = `fa-${name}`

  return <span className={[groupClass, iconClass].join(' ')} />
}