Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

641 B
Raw Blame
import { StaticMarkdown } from '@core/component/LexicalMarkdown/component/core/StaticMarkdown';
import { aiChatTheme } from '@core/component/LexicalMarkdown/theme';
import type { WidgetOf } from '../view';

export type MdProps = Omit<WidgetOf<'md'>, 'type'>;

/**
 * Renders static markdown via the app's Lexical static renderer. For best
 * results (and to avoid a per-instance editor), render inside a
 * <StaticMarkdownContext> — the gallery/ComposeView provides one.
 */
export function Md(props: MdProps) {
  return (
    <StaticMarkdown
      markdown={props.markdown}
      theme={aiChatTheme}
      target="internal"
    />
  );
}