<ion-header>
  <ion-toolbar>
    <ion-buttons slot="start">
      <ion-back-button defaultHref="/tabs/tab4"></ion-back-button>
    </ion-buttons>
    <ion-title>{{ content.title }}</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content>
  <h1>形式（绝句，律诗，词曲）</h1>
  <ion-input [value]="style" (ionInput)="styleInput($event)"></ion-input>
  
  <h1>内容风格描述</h1>
  <ion-textarea [value]="userPrompt" (ionInput)="promptInput($event)" placeholder="文本提示词" autoGrow="true"></ion-textarea>

  <ion-button (click)="sendMessage()" expand="block">消息生成</ion-button>

  <div *ngIf="!isComplete">
    <div>{{responseMsg}}</div>
  </div>

  <div *ngIf="isComplete">
    <fm-markdown-preview class="content-style" [content]="responseMsg"></fm-markdown-preview>
  </div>
</ion-content>