"use client"; import { Label } from "@kandev/ui/label"; import { Switch } from "@kandev/ui/switch"; import { useDraftedIntegrationEnabled } from "./use-drafted-integration-enabled"; type Props = { id: string; enabled: boolean; persist: (enabled: boolean) => Promise | void; }; export function DraftedIntegrationEnabledControl({ id, enabled, persist }: Props) { const draft = useDraftedIntegrationEnabled({ id: `${id}-enabled`, enabled, persist }); return (
); }