<template>
  <a :href="component.props.href || '#'" :style="component.style">{{ component.text }}</a>
</template>

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

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

<style scoped>
a {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
  text-decoration: none;
  color: #007bff; /* Default link color */
}
</style>
