<template>
  <div :style="component.style" class="icon-container">
    <i v-if="component.icon" :class="`icon-${component.icon}`"></i>
    <span v-else>&#9733;</span> <!-- Default star icon or other placeholder -->
  </div>
</template>

<script setup>
import { defineProps } from 'vue';

const props = defineProps({
  component: Object,
});
</script>

<style scoped>
.icon-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  font-size: 2em;
  color: var(--text-color); /* Default color */
  background-color: var(--panel-color); /* Added for better visibility */
  border-radius: var(--border-radius); /* Added for rounded corners */
  border: 1px solid var(--border-color); /* Added for better visibility */
}
</style>
