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

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

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

<style scoped>
.rendered-tooltip {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--panel-color);
  color: var(--text-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  box-sizing: border-box;
  border: 1px dashed var(--border-color); /* Added for better visibility */
}
</style>
