<script>
import ReportNotConfiguredGroup from '../shared/empty_states/report_not_configured_group.vue';
import VulnerabilityReportTabs from '../shared/vulnerability_report/vulnerability_report_tabs.vue';
import groupVulnerabilitiesQuery from '../../graphql/queries/group_vulnerabilities.query.graphql';

export default {
  components: {
    ReportNotConfiguredGroup,
    VulnerabilityReportTabs,
  },
  inject: ['hasProjects'],
  groupVulnerabilitiesQuery,
};
</script>

<template>
  <report-not-configured-group v-if="!hasProjects" />
  <vulnerability-report-tabs
    v-else
    :query="$options.groupVulnerabilitiesQuery"
    show-project-filter
  />
</template>
