()
| 473 | } |
| 474 | |
| 475 | private getButtons(): ToastButton[] { |
| 476 | const buttons = this.buttons |
| 477 | ? this.buttons.map((b) => { |
| 478 | return typeof b === 'string' ? { text: b } : b; |
| 479 | }) |
| 480 | : []; |
| 481 | |
| 482 | return buttons; |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * Returns the element specified by the positionAnchor prop, |