"use client"; import { APP_NAME } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Button } from "@coss/ui/components/button"; import { AppHeader, AppHeaderActions, AppHeaderContent, AppHeaderDescription, } from "@coss/ui/shared/app-header"; import { ArrowLeftIcon } from "lucide-react"; import Link from "next/link"; import type { ReactNode } from "react"; type WebhookFormHeaderProps = { CTA?: ReactNode; titleKey?: "add_webhook" | "edit_webhook" | "create_webhook"; showBackButton?: boolean; }; export function WebhookFormHeader({ CTA, titleKey = "add_webhook", showBackButton = true, }: WebhookFormHeaderProps) { const { t } = useLocale(); return (
{showBackButton && ( )} {t("add_webhook_description", { appName: APP_NAME })}
{CTA && {CTA}}
); }