UNPKG

communication-react-19

Version:

React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)

15 lines 861 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** @private */ export const getUserId = (state) => state.userId; /** @private */ export const getThreadId = (state) => state.thread.threadId; /** @private */ export const getChatMessages = (state) => state.thread.chatMessages; /* @conditional-compile-remove(rich-text-editor-image-upload) */ /** @private */ export const getTextOnlyChat = (state) => { var _a, _b; return (_b = (_a = state.thread.properties) === null || _a === void 0 ? void 0 : _a.messagingPolicy) === null || _b === void 0 ? void 0 : _b.textOnlyChat; }; /* @conditional-compile-remove(rich-text-editor-image-upload) */ /** @private */ export const getCreatedBy = (state) => { var _a; return (_a = state.thread.properties) === null || _a === void 0 ? void 0 : _a.createdBy; }; //# sourceMappingURL=baseSelectors.js.map