@uimkit/uikit-react
Version:
<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>
18 lines (15 loc) • 628 B
TypeScript
import { PropsWithChildren } from 'react';
import { Profile, Conversation } from '../types/models.js';
import { APIClient } from '../types/api.js';
interface UIKitContextProps {
client: APIClient;
activeProfile?: Profile;
activeConversation?: Conversation;
setActiveConversation: (conversation?: Conversation) => void;
}
declare function UIKitProvider({ value, children }: PropsWithChildren<{
value: UIKitContextProps;
}>): JSX.Element;
declare const useUIKit: (componentName?: string) => UIKitContextProps;
export { UIKitContextProps, UIKitProvider, useUIKit };
//# sourceMappingURL=UIKitContext.d.ts.map