9 lines · 322 B · TypeScript
RawDownload
export function shouldHideCollapsedToastContent(  visibleToastIndex: number,  visibleToastCount: number,): boolean {  // Keep the front-most toast readable even if Base UI marks it as "behind"  // due to toasts hidden by thread filtering.  if (visibleToastCount <= 1) return false;  return visibleToastIndex > 0;}