<template>
  <div class="rendered-badge" :style="component.style">
    {{ component.text || 'Badge' }}
  </div>
</template>

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

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

<style scoped>
.rendered-badge {
  background-color: var(--accent-color); /* Assuming accent-color is defined globally */
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  display: inline-flex; /* Use inline-flex to size to content */
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
</style>
