<template>
  <div class="loading-spinner-container">
    <div class="loading-spinner" :style="{ width: size, height: size }"></div>
    <p v-if="text" class="loading-text">{{ text }}</p>
  </div>
</template>

<script setup>
defineProps({
  size: {
    type: String,
    default: '40px'
  },
  text: {
    type: String,
    default: ''
  }
})
</script>

<style scoped>
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loading-text {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}
</style>
