<template>
  <a :href="getPdfLink" class="print" target="_blank">
    <Icon :aria-label="$_tr('altIconPrint')" icon="print" />
  </a>
</template>

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

export default {
  name: 'Print',
  $_i18nRootPath: 'customs.print',
  components: {
    Icon
  },
  props: {
    contentType: {
      type: String,
      required: true
    },
    uuid: {
      type: String,
      required: true
    }
  },
  computed: {
    getPdfLink() {
      return `/protected_files/pdf/${this.contentType}/${this.uuid}.pdf`
    }
  }
}
</script>
