<template>
  <div class="ai-pane-wrapper">
    <div class="header">
      <div class="icon">
        <img src="./ai-icon.svg" alt="">
      </div>
      <div class="title text-title-3-show">{{ '智能总结' }}</div>
    </div>
    <div class="content text-regular">{{ aiContent }}</div>
  </div>
</template>

<script setup>

const props = defineProps({
  aiContent: {
    type: String,
    default: ''
  }
})

</script>

<style lang="scss">
.ai-pane-wrapper {
  width: 100%;
  min-height: 156px;
  height: auto;
  background: var(--color-primary-2);
  box-sizing: border-box;
  padding: 12px 16px;

  .header {
    width: 126px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    background: var(--color-primary-10);

    .icon {
      width: 20px;
      height: 16px;

      img {
        width: 100%;
        height: 100%;
      }
    }

    .title {
      color: var(--color-primary-100);
    }
  }

  .content {
    margin-top: 8px;
    width: 100%;
    min-height: 90px;
    height: auto;
    box-sizing: border-box;
    padding: 0 12px;
    color: var(--color-primary-100);
    display: block;
    overflow: visible;
    word-break: break-word;
    white-space: pre-wrap;
  }
}
</style>