<script setup lang="ts">
import HealthDashboardView, { type HealthInfo } from './HealthDashboardView.vue'

// Wrapper: handles data fetching, delegates rendering to HealthDashboardView.
// Separation of concerns (SRP):
//   - HealthDashboard (this) = data layer (useFetch lifecycle)
//   - HealthDashboardView    = presentation layer (testable in Storybook + e2e)
const { data, pending, error } = await useFetch<HealthInfo>('/api/healthz')
</script>

<template>
  <HealthDashboardView :data="data" :pending="pending" :error="error" />
</template>
