<template>
  <div class="ged-page-customs-container">
    <Banner :herited-options="heritedOptions" page="shared_documents" />

    <TemplateContainer size="l">
      <AddContent
        v-if="permissionAddContent()"
        :parents="['shared_folders']"
        :contents="['shared_documents']"
        :multi-upload-contents="['shared_documents']"
        type="admin"
      />
      <GedGlobal
        content-documents="shared_documents"
        content-folders="shared_folders"
      />
    </TemplateContainer>
  </div>
</template>

<script>
import Banner from '../components/commons/Banner'
import GedGlobal from '../components/ged/GedGlobal'
import TemplateContainer from '@inside-commons/components/lib/TemplateContainer'
import AddContent from '../components/commons/AddContent'

export default {
  name: 'ged-page-customs',
  components: {
    Banner,
    TemplateContainer,
    GedGlobal,
    AddContent
  },
  methods: {
    permissionAddContent() {
      return this.getUserInfos.permissions.add.includes('shared_documents')
    }
  }
}
</script>
