MCPcopy
hub / github.com/codeaashu/claude-code / useVoiceEnabled

Function useVoiceEnabled

src/hooks/useVoiceEnabled.ts:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 * (user is still authed), so the auth memo stays correct without re-eval.
18 */
19export function useVoiceEnabled(): boolean {
20 const userIntent = useAppState(s => s.settings.voiceEnabled === true)
21 const authVersion = useAppState(s => s.authVersion)
22 // eslint-disable-next-line react-hooks/exhaustive-deps
23 const authed = useMemo(hasVoiceAuth, [authVersion])
24 return userIntent && authed && isVoiceGrowthBookEnabled()
25}
26

Callers 4

ModeIndicatorFunction · 0.85
NotificationContentFunction · 0.85
useVoiceIntegrationFunction · 0.85

Calls 2

useAppStateFunction · 0.85
isVoiceGrowthBookEnabledFunction · 0.85

Tested by

no test coverage detected