UNPKG

stream-chat-react-native-core

Version:

The official React Native and Expo components for Stream Chat, a service for building chat applications

20 lines 716 B
Object.defineProperty(exports, "__esModule", { value: true }); exports.useClientNotifications = void 0; var _useStateStore2 = require("./useStateStore"); var _ChatContext = require("../contexts/chatContext/ChatContext"); var selector = state => ({ notifications: state.notifications }); var useClientNotifications = () => { var _useChatContext = (0, _ChatContext.useChatContext)(), client = _useChatContext.client; var _useStateStore = (0, _useStateStore2.useStateStore)(client.notifications.store, selector), notifications = _useStateStore.notifications; return { notifications }; }; exports.useClientNotifications = useClientNotifications; //# sourceMappingURL=useClientNotifications.js.map