feat(web): add per-integration enable/disable toggle (#2364)

Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
Clément Fiere
2026-08-07 20:01:07 +02:00
committed by GitHub
parent 58f6533ab1
commit 312dc0657f
54 changed files with 2504 additions and 257 deletions
@@ -0,0 +1,17 @@
"use client";
import { DraftedIntegrationEnabledControl } from "@/components/integrations/drafted-integration-enabled-control";
import { useGitHubEnabled } from "@/hooks/domains/github/use-github-enabled";
/** Enable/disable slider for the GitHub integration, wired to `useGitHubEnabled`. */
export function GitHubEnabledControl() {
const { enabled, setEnabled } = useGitHubEnabled();
return (
<DraftedIntegrationEnabledControl
id="github"
name="GitHub"
enabled={enabled}
persist={setEnabled}
/>
);
}