feat(widgets): menu item with toggle

This commit is contained in:
Elian Doran
2025-12-10 18:07:38 +02:00
parent 84bde62e05
commit 8fa9c25f2a
3 changed files with 40 additions and 12 deletions

View File

@@ -5,9 +5,9 @@ interface FormToggleProps {
currentValue: boolean | null;
onChange(newValue: boolean): void;
switchOnName: string;
switchOnTooltip: string;
switchOnTooltip?: string;
switchOffName: string;
switchOffTooltip: string;
switchOffTooltip?: string;
helpPage?: string;
disabled?: boolean;
}
@@ -37,5 +37,5 @@ export default function FormToggle({ currentValue, helpPage, switchOnName, switc
{ helpPage && <HelpButton className="switch-help-button" helpPage={helpPage} />}
</div>
)
}
);
}