import React from "react"; export default function AuthToast({ type = "info", title = "", message = "", actionLabel = "", onAction, onClose, }) { if (!message) return null; const icon = type === "success" ? "fa-solid fa-circle-check" : type === "error" ? "fa-solid fa-triangle-exclamation" : type === "warn" ? "fa-solid fa-circle-exclamation" : "fa-solid fa-circle-info"; return (
{title ?
{title}
: null}
{message}
{actionLabel && typeof onAction === "function" ? (
) : null}
); }