<template>
  <div class="img-icon">
    <img :src="iconName" />
  </div>
</template>

<script>
export default {
  name: "img-icon",
  props: {
    iconName: {
      type: String
    }
  }
};
</script>

<style lang="scss">
.img-icon {
  width: 20px;
  height: 20px;
  overflow: hidden;
  img {
    display: block;
    width: 100%;
    height: 100%;
  }
}
</style>
