<template>
  <div class="rendered-chart" :style="component.style">
    {{ component.text || 'Chart' }}
    <!-- This would typically contain a chart library rendering -->
  </div>
</template>

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

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

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