<template>
  <a :href="`${currentUrl}/pdf-download/projects/${uuid}`">
    <IconTextButton icon="download">{{ $_tr('title') }}</IconTextButton>
  </a>
</template>

<script>
import { IconTextButton } from 'inside-collection/components'

export default {
  name: 'DownloadProject',
  $_i18nRootPath: 'customs.PROJECTS.download',
  components: {
    IconTextButton
  },
  props: {
    uuid: { type: String, required: true }
  },
  computed: {
    currentUrl() {
      return this.$store.getters.getURLsInfos.api
    }
  }
}
</script>
