import { createPortal } from "react-dom"; import { useHive } from "../store"; import { dismissToast } from "../store/raw"; // Toast stack (K1/Decision 7). A single mount renders every transient // notification pushed by a mutating flow (comment/approve, override save, prune, // session/project delete). Bottom-right, click-to-dismiss, auto-expiring. export default function Toast() { const toasts = useHive((s) => s.toasts); if (!toasts.length) return null; return createPortal(