(host: SlashCommandHost)
| 486 | } |
| 487 | |
| 488 | function renderWelcome(host: SlashCommandHost): void { |
| 489 | if ( |
| 490 | host.state.transcriptContainer.children.some( |
| 491 | (child) => child instanceof WelcomeComponent, |
| 492 | ) |
| 493 | ) { |
| 494 | return; |
| 495 | } |
| 496 | host.state.transcriptContainer.addChild( |
| 497 | new WelcomeComponent(host.state.appState), |
| 498 | ); |
| 499 | } |