/* Copyright 2026 Marimo. All rights reserved. */ import { memo } from "react"; import type { Intent } from "@/plugins/impl/common/intent"; import { cn } from "@/utils/cn"; import { HtmlOutput } from "./HtmlOutput"; interface Props { html: string; kind: Intent; title?: string; } // Callouts share the flat admonition style of markdown admonitions // (css/admonition.css); each intent maps onto an admonition kind. const KIND_CLASS: Record = { neutral: "neutral", info: "info", warn: "warning", success: "success", danger: "danger", // 'alert' is deprecated; render as danger alert: "danger", }; export const CalloutOutput: React.FC = memo(({ html, kind, title }) => { return (
{title && {title}}
); }); CalloutOutput.displayName = "CalloutOutput";