<template>
  <Icon
    :color="$_theme('colorLight')"
    icon="close"
    size="m"
    class="close-info-modal-btn mr-m"
    @click="closeFlashInfo"
  />
</template>

<script>
import { Icon } from 'inside-collection/atoms'

export default {
  name: 'CloseFlashInfo',
  $_i18nRootPath: 'customs.FLASHINFO',
  components: { Icon },
  methods: {
    closeFlashInfo() {
      this.post('reaction/popin', {
        uuid: this.heritedData.uuid
      })

      this.closeModal(this.heritedOptions.modalName)
    }
  }
}
</script>

<style lang="scss">
.close-info-modal-btn {
  cursor: pointer;
}
</style>
