/* Copyright 2026 Marimo. All rights reserved. */ import type { ReactNode } from "react"; import { Banner } from "@/plugins/impl/common/error-banner"; import { DelayMount } from "../../utils/delay-mount"; interface FloatingAlertProps { title?: string; children: ReactNode; show: boolean; delayMs?: number; kind?: "info" | "warn" | "danger"; } export const FloatingAlert: React.FC = ({ title, children, show, delayMs = 2000, kind = "info", }) => { if (!show) { return null; } const body = (
{title && (
{title}
)}
{children}
); return {body}; };