function toastStyle(type) { const base = { borderRadius: "var(--radius-md)", padding: "12px 16px", boxShadow: "var(--shadow-lg)", minWidth: "260px", maxWidth: "380px", display: "flex", alignItems: "center", justifyContent: "space-between", gap: "16px", pointerEvents: "auto", fontSize: "13px", fontFamily: "var(--font-body)", lineHeight: 1.4, }; if (type === "error") return { ...base, background: "rgba(239,68,68,0.9)", color: "#fff", border: "1px solid var(--danger)" }; if (type === "success") return { ...base, background: "rgba(34,197,94,0.9)", color: "#fff", border: "1px solid var(--success)" }; if (type === "warn") return { ...base, background: "rgba(234,179,8,0.9)", color: "var(--bg-primary)", border: "1px solid var(--warning)" }; return { ...base, background: "var(--bg-elevated)", color: "var(--text-primary)", border: "1px solid var(--border)" }; } export default function ToastContainer({ toasts, onClose }) { if (!toasts || toasts.length === 0) return null; return (
{toasts.map((t) => (
{t.message}
))}
); }