import SvgIcon from './SvgIcon'

const req = require.context('@renderer/assets/svgs', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)

export default app => {
  app.component('svg-icon', SvgIcon)
}
