<script>
import ReportNotConfiguredInstance from '../shared/empty_states/report_not_configured_instance.vue';
import VulnerabilityReportTabs from '../shared/vulnerability_report/vulnerability_report_tabs.vue';
import instanceVulnerabilitiesQuery from '../../graphql/queries/instance_vulnerabilities.query.graphql';

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

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