'use client'; import React from 'react'; import { cn } from '../../utils'; import { MingoIcon } from '../icons'; export interface MingoAiButtonProps extends React.ButtonHTMLAttributes { source?: string; /** The platform's Mingo identity glyph — pass the SAME server-configured * icon the chat panel renders (host-side: `EntityIcon` fed by the admin * `assistantIcon`), so the launcher and the panel can never diverge. * Falls back to the packaged Mingo mark when the server has none. */ icon?: React.ReactNode; /** The launcher's wordmark + aria-label — pass the server-configured * assistant name (same `assistantName` the chat panel shows) so the * launcher never hardcodes an identity the admin has renamed. */ label?: string; } /** * Marketing-header Mingo AI launcher: the flush, full-height button rendered * at the far right edge of the public `Header` (`config.mingo`). Stateless: * clicking dispatches an `ask-ai:open` CustomEvent (source-filtered) that the * mounted `EmbeddableChat` panel listens for. * * Distinct from `header-mingo-button.tsx` (`HeaderMingoButton`), the * dashboard/AppHeader controlled toggle; different surface and contract, do * not merge them. * * Deliberately a raw ` ); } export default MingoAiButton;