Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

toast.logic.ts

9 lines322 Bytes

1export function shouldHideCollapsedToastContent(
2 visibleToastIndex: number,
3 visibleToastCount: number,
4): boolean {
5 // Keep the front-most toast readable even if Base UI marks it as "behind"
6 // due to toasts hidden by thread filtering.
7 if (visibleToastCount <= 1) return false;
8 return visibleToastIndex > 0;
9}