(_config: Config)
| 16 | } |
| 17 | |
| 18 | export 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" |
nothing calls this directly
no outgoing calls
no test coverage detected