<template>
  <p class="text-node">{{ text }}</p>
</template>

<script setup>
import { computed } from 'vue'

const props = defineProps({
  node: {
    type: Object,
    default: () => ({})
  }
})

const text = computed(() => String(props.node?.content_payload?.text || '').trim() || ' ')
</script>

<style scoped lang="scss">
.text-node {
  margin: 0;
  font-size: 14px;
  color: #344054;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
</style>
