// OpenSourceModeToggle.tsx import React from 'react'; interface OpenSourceModeToggleProps { openSourceMode: boolean; // Current state of open source mode setOpenSourceMode: (value: boolean) => void; // Function to update open source mode setSelectedOption: (value: string) => void; // Function to update the selected option } const OpenSourceModeToggle: React.FC = ({ openSourceMode, setOpenSourceMode, setSelectedOption }) => { const handleToggleChange = () => { const newValue = !openSourceMode; setOpenSourceMode(newValue); // Update radio selection based on the new openSourceMode value if (newValue) { setSelectedOption('FOSS'); // Set to FOSS if enabling open source mode } else { setSelectedOption('None'); // Or any other default value when disabling } }; return (
); }; export default OpenSourceModeToggle;