import React from "react"; import { SettingContainer } from "./SettingContainer"; interface ToggleSwitchProps { checked: boolean; onChange: (checked: boolean) => void; disabled?: boolean; isUpdating?: boolean; label: string; description: string; descriptionMode?: "inline" | "tooltip"; grouped?: boolean; } export const ToggleSwitch: React.FC = ({ checked, onChange, disabled = false, isUpdating = false, label, description, descriptionMode = "tooltip", grouped = false, }) => { return ( {isUpdating && (
)}
); };