import Icon from './icon'
import { setFontFamily, setClassPrefix } from './util'

Icon.install = (App, options = {}) => {
  setFontFamily(options.fontFamily)
  setClassPrefix(options.classPrefix || 'icon-')
  App.component(Icon.name, Icon)
}

export default Icon
