+ );
+};
+
+
+interface ToggleSwitchProps {
+ enabled: boolean;
+ onToggle: () => void;
+ renderTrackingIcon: (enabled: boolean) => React.ReactNode;
+}
+
+/**
+ * A toggle switch component that can be used to toggle a setting on and off.
+ * The component takes in three props: enabled, onToggle, and renderTrackingIcon.
+ * The enabled prop is a boolean that indicates whether the setting is currently enabled or not.
+ * The onToggle prop is a function that is called when the user clicks on the toggle switch.
+ * The renderTrackingIcon prop is a function that is called to render the icon that is displayed
+ * on the toggle switch. The function takes a boolean argument indicating whether the setting
+ * is enabled or not.
+ */
+export const ToggleSwitch: React.FC = ({ enabled, onToggle, renderTrackingIcon }) => {
+ return (
+