@azure/communication-react
Version:
React library for building modern communication user experiences utilizing Azure Communication Services
11 lines • 558 B
TypeScript
import { ChatClientState } from "../../../chat-stateful-client/src";
/**
* Hook to obtain a selector for a specified component.
*
* Useful when implementing a custom component that utilizes the providers
* exported from this library.
*
* @public
*/
export declare const useSelector: <SelectorT extends (state: ChatClientState, props: any) => any, ParamT extends SelectorT | undefined>(selector: ParamT, selectorProps?: Parameters<SelectorT>[1]) => ParamT extends SelectorT ? ReturnType<SelectorT> : undefined;
//# sourceMappingURL=useSelector.d.ts.map