()
| 359 | () => ({ |
| 360 | isExpanded, |
| 361 | toggleExpanded() { |
| 362 | if (!isExpanded && queue.visibleToasts.length <= 1) { |
| 363 | return; |
| 364 | } |
| 365 | |
| 366 | startViewTransition(() => toggle(), isExpanded ? 'toast-collapse' : 'toast-expand'); |
| 367 | } |
| 368 | }), |
| 369 | [isExpanded, toggle, queue] |
| 370 | ); |
no test coverage detected