MCPcopy Create free account
hub / github.com/anus-dev/ANUS / usePrivacySettings

Function usePrivacySettings

packages/cli/src/ui/hooks/usePrivacySettings.ts:18–36  ·  view source on GitHub ↗
(_config: Config)

Source from the content-addressed store, hash-verified

16}
17
18export const usePrivacySettings = (_config: Config) => {
19 // Stub implementation - ANUS doesn't collect any data
20 // Return static values to maintain component compatibility
21 const [privacyState] = useState<PrivacyState>({
22 isLoading: false,
23 isFreeTier: false, // Set to false to avoid showing opt-in dialogs
24 dataCollectionOptIn: false, // Always false - no data collection
25 });
26
27 const updateDataCollectionOptIn = useCallback(async (_optIn: boolean) => {
28 // No-op - ANUS doesn't collect data
29 // Function kept for backward compatibility
30 }, []);
31
32 return {
33 privacyState,
34 updateDataCollectionOptIn,
35 };
36};
37
38// Removed helper functions for CodeAssistServer as ANUS doesn't use them
39// The privacy settings are now a simple stub that always returns "no data collection"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected