<template>
  <div class="rendered-modal" :style="component.style">
    {{ component.text || 'Modal' }}
    <!-- This would typically contain a header, body, and footer, possibly with a backdrop -->
  </div>
</template>

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

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

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