Rezi
    Preparing search index...

    Function filterExpiredToasts

    • Filter toasts by auto-dismiss status. Returns toasts that should still be visible based on their creation time.

      Parameters

      • toasts: readonly Readonly<
            {
                action?: Readonly<{ label: string; onAction: () => void }>;
                duration?: number;
                id: string;
                message: string;
                progress?: number;
                type: "success" | "warning" | "error" | "info";
            },
        >[]

        All toasts

      • now: number

        Current timestamp in ms

      • createdAt: ReadonlyMap<string, number>

        Map of toast ID to creation timestamp

      Returns readonly Readonly<
          {
              action?: Readonly<{ label: string; onAction: () => void }>;
              duration?: number;
              id: string;
              message: string;
              progress?: number;
              type: "success" | "warning" | "error" | "info";
          },
      >[]

      Toasts that haven't expired