@if (modalRef.data.subtitle; as subtitle) {
  <h2 class="subtitle">{{ subtitle }}</h2>
}
@if (modalRef.data.content; as content) {
  <p class="content">
    {{ content }}
  </p>
}

@if (modalRef.data.actions; as actions) {
  <div class="actions">
    @for (action of actions; track action) {
      <button [class.selected]="action.selected" (click)="handleCommand(action.command)">
        {{ action.label }}
      </button>
    }
  </div>
}

@if (modalRef.data.description; as description) {
  <p class="description">
    {{ description }}
  </p>
}
