import { Control, Controller } from "react-hook-form"; import { IWebhook } from "@plane/types"; // ui import { ToggleSwitch } from "@plane/ui"; // types interface IWebHookToggle { control: Control; } export const WebhookToggle = ({ control }: IWebHookToggle) => (
Enable webhook
( { onChange(val); }} size="sm" /> )} />
);