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

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

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

<style scoped>
.rendered-card {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--panel-color);
  box-sizing: border-box;
  color: var(--text-color); /* Added for text visibility */
}
</style>
