"use client"; // The CRM messenger, now rendered by the shared @insignia/iios-messaging-ui SDK instead of a // bespoke in-CRM implementation. The CRM only supplies an adapter (transport) + theming; all the // UI + messaging logic lives in the SDK. Live path = the be-crm data door (CrmMessagingAdapter); // demo path = the SDK's own MockAdapter. import { useMemo } from "react"; import { useAppShell, useAuth } from "@abe-kap/appshell-sdk/react"; import { MessagingProvider, Messenger as SdkMessenger, type MessagingAdapter } from "@insignia/iios-messaging-ui"; import { MockAdapter } from "@insignia/iios-messaging-ui/adapters/mock"; import "@insignia/iios-messaging-ui/styles.css"; import { isShellConfigured } from "@/lib/appshell"; import { useRealtime } from "@/lib/realtime"; import { CrmMessagingAdapter, type DataDoor } from "@/lib/crm-messaging-adapter"; const SHELL = isShellConfigured(); export function MessengerSdk({ focusThreadId }: { focusThreadId?: string | null } = {}) { return (