• Parameters

    • target: Target
    • props: {
          channelId: string;
          client: Client;
          config?: DeepPartial<ChatPanelConfiguration>;
          theme?: DeepPartial<Theme>;
      }
      • channelId: string

        The same channelId used while creating the Client.

      • client: Client

        Existing Client instance.

      • Optional config?: DeepPartial<ChatPanelConfiguration>

        The ChatPanel configuration that can be customized.

      • Optional theme?: DeepPartial<Theme>

        The ChatPanel theme options that can be customized.

    Returns {
        destroy: (() => void);
        update: (<U>(newProps: U) => void);
    }

    • destroy: (() => void)
    • update: (<U>(newProps: U) => void)
        • <U>(newProps: U): void
        • Type Parameters

          • U extends DeepPartial<{
                channelId: string;
                client: Client;
                config: ChatPanelConfiguration;
                theme: Theme;
            }>

          Parameters

          • newProps: U

          Returns void