import React from "react"; const map = { ok: { c: "var(--status-ok)", bg: "var(--ctv-ok-soft)", icon: "M5 12.5l4.5 4.5L19 7" }, warn: { c: "var(--status-warn)", bg: "var(--ctv-warn-soft)", icon: "M12 8v5M12 17h.01" }, error: { c: "var(--status-error)", bg: "var(--ctv-error-soft)", icon: "M12 8v5M12 17h.01" }, info: { c: "var(--ctv-accent)", bg: "var(--ctv-accent-soft)", icon: "M12 11v5M12 8h.01" }, }; /** * Toast / inline alert. Icon, message, optional close. */ export function Toast({ tone = "info", title, message, onClose, style = {} }) { const t = map[tone] || map.info; return (
{title &&
{title}
} {message &&
{message}
}
{onClose && ( )}
); }