<template>
  <h2 :style="component.style">{{ component.text }}</h2>
</template>

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

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

<style scoped>
h2 {
  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;
}
</style>
