// PrivacySettings.tsx import React from 'react'; interface PrivacySettingsProps { selectedOption: string; // The currently selected option handleRadioChange: (option: string) => void; // Function to handle option changes openSourceMode: boolean; // Boolean to check if the mode is open source } const PrivacySettings: React.FC = ({ selectedOption, handleRadioChange, openSourceMode }) => { return ( <> {/* AI Mode Radio Options */}

Disable Options:

{/* Offline */}
handleRadioChange('Offline')} // Allow selection only if not in open-source mode > Offline tools{openSourceMode ? ' (FOSS)' : ''}
{/* Online */}
handleRadioChange('Online')} > Online tools{openSourceMode ? ' (FOSS)' : ''}
{/* None */}
handleRadioChange('None')} > None{openSourceMode ? ' (FOSS)' : ''}

); }; export default PrivacySettings;