<ion-header [translucent]="true">
  <ion-toolbar>
    <ion-title>
      Chat模块组件演示
    </ion-title>
  </ion-toolbar>
</ion-header>

<!-- {{title}} -->
<ion-content [fullscreen]="true">
  <h1>页面：配置路由和参数的聊天页</h1>
  <ion-button (click)="goChat()">开始页面聊天</ion-button>
  <h1>组件：直接弹出的聊天组件</h1>
  <ion-button (click)="openChat()">开始新聊天</ion-button>
  <ion-button (click)="restoreChat('yHEHqMQDNv')">恢复会话</ion-button>
  <h1>示例：兴趣分析的智能体示例（ChatPanel组件）</h1>
  <ion-button (click)="openInquiry()">进入兴趣分析</ion-button>

  @if(!planMessage?.complete){
    <div>{{planMessage?.content}}</div>
  }
  @if(planMessage?.complete){
    <comp-markmap [markdown]="markmapResult"></comp-markmap>
  }
</ion-content>