useChatLifecycle

Unpublished development API. This package is under development and is not available as a published release.

The lifecycle of the Chat this component is rendered inside, such as from its header, welcome or composer slots. Null outside a Chat; there, use the onLifecycleChange prop of Chat instead.

import { useChatLifecycle } from '@threadplane/react/chat';

Declaration · overload 1

export declare function useChatLifecycle(): ChatLifecycle | null;

Returns

ChatLifecycle | null