import { FC } from "react"; import { ToggleSwitch } from "@plane/ui"; import Link from "next/link"; import { RootStore } from "store/root"; import { useMobxStore } from "lib/mobx/store-provider"; // types import { IWebhook } from "types"; interface IWebhookListItem { workspaceSlug: string; webhook: IWebhook; } export const WebhooksListItem: FC = (props) => { const { workspaceSlug, webhook } = props; const { webhook: webhookStore }: RootStore = useMobxStore(); const handleToggle = () => { if (webhook.id) { webhookStore.update(workspaceSlug, webhook.id, { ...webhook, is_active: !webhook.is_active }).catch(() => {}); } }; return (
{webhook?.url || "Webhook URL"}
{/*
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
*/}
); };