import _ from 'lodash'
import Vue from 'vue'
import SvgCamera from '../assets/svg/icons/camera.svg?inline'
import banks from '../resources/json/banks.json'

_.forEach(banks, (value, key) => {
  const name = `SvgBank${_.capitalize(key)}`
  // eslint-disable-next-line import/no-dynamic-require
  const context = require(`../assets/svg/icons/banks/${key}.svg?inline`)
  Vue.component(name, context)
})

Vue.component('SvgCamera', SvgCamera)
