<script setup lang="ts">
defineProps<{
  loading: boolean
  error: string | null
}>()
</script>

<template>
  <div v-if="loading" class="loading">Loading...</div>
  <div v-else-if="error" class="error">Error: {{ error }}</div>
</template>

<style scoped>
.loading {
  color: var(--loading-color);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error {
  color: var(--error-color);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
</style>
