<template>
  <document-action-item
    icon="fas fa-pen"
    :label="$t('document.label.rename')"
    @click="editNameMode" />
</template>
<script>
export default {
  props: {
    file: {
      type: Object,
      default: null,
    },
    isMobile: {
      type: Boolean,
      default: false
    }
  },
  data: () => ({
    editName: false
  }),
  methods: {
    editNameMode(){
      this.$root.$emit('update-file-name', this.file);
      this.$root.$emit('close-file-action-menu');
    }
  },
};
</script>