<template>
  <ToolsListingBlock
    :static-data="tools"
    :block-options="blockOptions"
    display="minimal"
    class="mb-xl"
  />
</template>

<script>
import ToolsListingBlock from '@inside-tools/components/lib/ToolsListingBlock'

export default {
  name: 'SpaceToolsListing',
  $_i18nRootPath: 'customs.SPACES.tools',
  components: { ToolsListingBlock },
  props: {
    tools: {
      type: Array,
      required: true
    }
  },
  computed: {
    blockOptions() {
      return {
        title: this.$_tr('title'),
        titleTag: 'h4',
        link: { name: 'ToolsPage' },
        linkLabel: this.$_tr('link')
      }
    }
  }
}
</script>
