// 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 Option */}
handleRadioChange('Offline')} // Handle selection change > Offline tools{openSourceMode ? ' (FOSS)' : ''} {/* Display FOSS label if applicable */}
{/* Online Option */}
handleRadioChange('Online')} // Handle selection change > Online tools{openSourceMode ? ' (FOSS)' : ''} {/* Display FOSS label if applicable */}
{/* None Option */}
handleRadioChange('None')} // Handle selection change > None{openSourceMode ? ' (FOSS)' : ''} {/* Display FOSS label if applicable */}

); }; export default PrivacySettings;