diff --git a/app/components/settings/CheckBox.tsx b/app/components/settings/CheckBox.tsx index 1b1ece5..7944a7e 100644 --- a/app/components/settings/CheckBox.tsx +++ b/app/components/settings/CheckBox.tsx @@ -1,25 +1,28 @@ import React from 'react'; +// Define the props for the CheckboxSetting component interface CheckboxSettingProps { label: string; // The label to display checked: boolean; // The checked state of the checkbox setChecked: (value: boolean) => void; // Method to update the state } +// Functional component definition const CheckboxSetting: React.FC = ({ label, checked, setChecked }) => { + // Handler to toggle the checkbox state const handleCheckboxChange = () => { - setChecked(!checked); + setChecked(!checked); // Toggle the checked state }; return ( -
+
{/* Container for the checkbox setting */}
);