<script>
import { mapGetters, mapState } from 'vuex';
import VulnerabilityCountListLayout from './vulnerability_count_list_layout.vue';

export default {
  components: {
    VulnerabilityCountListLayout,
  },
  computed: {
    ...mapGetters('vulnerabilities', ['dashboardCountError']),
    ...mapState('vulnerabilities', ['isLoadingVulnerabilitiesCount', 'vulnerabilitiesCount']),
  },
};
</script>

<template>
  <vulnerability-count-list-layout
    :show-error="dashboardCountError"
    :is-loading="isLoadingVulnerabilitiesCount"
    :vulnerabilities-count="vulnerabilitiesCount"
  />
</template>
