<template>
  <div class="rendered-toast" :style="component.style">
    {{ component.text || 'Toast Message' }}
  </div>
</template>

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

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

<style scoped>
.rendered-toast {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: var(--panel-color);
  color: var(--text-color);
  border-radius: var(--border-radius);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3); /* Darker shadow for dark theme */
  box-sizing: border-box;
  border: 1px solid var(--border-color); /* Added for better visibility */
}
</style>
