stream-chat-react-native-core
Version:
The official React Native and Expo components for Stream Chat, a service for building chat applications
15 lines • 502 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useChannelMemberCount = useChannelMemberCount;
var _useSelectedChannelState = require("./useSelectedChannelState");
var selector = channel => channel.data?.member_count ?? 0;
var keys = ['channel.updated'];
function useChannelMemberCount(channel) {
return (0, _useSelectedChannelState.useSelectedChannelState)({
channel,
selector,
stateChangeEventKeys: keys
});
}
//# sourceMappingURL=useChannelMemberCount.js.map