()
| 368 | () => ({ |
| 369 | isExpanded, |
| 370 | toggleExpanded() { |
| 371 | if (!isExpanded && queue.visibleToasts.length <= 1) { |
| 372 | return; |
| 373 | } |
| 374 | |
| 375 | startViewTransition(() => toggle(), isExpanded ? 'toast-collapse' : 'toast-expand'); |
| 376 | } |
| 377 | }), |
| 378 | [isExpanded, toggle, queue] |
| 379 | ); |
no test coverage detected