<script setup lang="ts">
withDefaults(defineProps<{
  description?: string
  icon?: string
}>(), {
  description: '暂无数据',
  icon: '📭',
})
</script>

<template>
  <div class="app-empty">
    <div class="empty-icon">{{ icon }}</div>
    <div class="empty-text">{{ description }}</div>
  </div>
</template>

<style scoped lang="scss">
.app-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: $gray-500;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-text {
  font-size: 14px;
}
</style>