{"version":3,"file":"useIsChannelMuted.mjs","names":[],"sources":["../../../../../src/components/ChannelListItem/hooks/useIsChannelMuted.ts"],"sourcesContent":["import type { Channel, MuteStatusState } from 'stream-chat';\n\nimport { useStateStore } from '../../../store';\n\nconst muteStatusSelector = (nextValue: MuteStatusState) => ({\n  muteStatus: nextValue.muteStatus,\n});\n\n/**\n * Reactively returns the channel's mute status for the current user. Re-renders only when the\n * status changes, not on every client update of the muted channels.\n */\nexport const useIsChannelMuted = (channel: Channel) =>\n  useStateStore(channel.state, muteStatusSelector).muteStatus;\n"],"mappings":";;AAIA,IAAM,sBAAsB,eAAgC,EAC1D,YAAY,UAAU,WACxB;;;;;AAMA,IAAa,qBAAqB,YAChC,cAAc,QAAQ,OAAO,kBAAkB,CAAC,CAAC"}