"use client"; import { useRouter } from "next/navigation"; import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants"; import { useBookerUrl } from "@calcom/lib/hooks/useBookerUrl"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { RouterOutputs } from "@calcom/trpc/react"; import type { WebhooksByViewer } from "@calcom/trpc/server/routers/viewer/webhook/getByViewer.handler"; import classNames from "@calcom/ui/classNames"; import { Avatar } from "@calcom/ui/components/avatar"; import { EmptyScreen } from "@calcom/ui/components/empty-screen"; import { WebhookListItem, CreateNewWebhookButton } from "../components"; type Props = { data: RouterOutputs["viewer"]["webhook"]["getByViewer"]; isAdmin: boolean; }; const WebhooksView = ({ data, isAdmin }: Props) => { return (