<script setup lang="ts">
defineProps<{
  isActive: boolean;
  isLoading: boolean;
  isLoaded: boolean;
  pulseScale: number;
}>();
</script>

<template>
  <section
    class="calendar-lab-rect calendar-lab-week"
    :class="isActive ? 'calendar-lab-rect-active' : ''"
    :style="{ transform: `scale(${pulseScale})` }"
  >
    <header class="calendar-lab-header">
      <p class="calendar-lab-title">Week</p>
      <p class="calendar-lab-subtitle">7 day columns</p>
    </header>

    <p v-if="isLoading" class="calendar-lab-loading">Loading GraphQL week payload…</p>
    <p v-else-if="isLoaded" class="calendar-lab-meta">Data ready</p>

    <div class="calendar-lab-grid-week">
      <span
        v-for="day in 7"
        :key="`lab-week-day-${day}`"
        class="calendar-lab-day"
      >
        D{{ day }}
      </span>
    </div>
  </section>
</template>
