import { useRouter } from "next/router"; import { useIntercom } from "@calcom/features/ee/support/lib/intercom/useIntercom"; import { getLayout } from "@calcom/features/settings/layouts/SettingsLayout"; import { classNames } from "@calcom/lib"; import { WEBAPP_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Button, Meta } from "@calcom/ui"; import { ExternalLink } from "@calcom/ui/components/icon"; import PageWrapper from "@components/PageWrapper"; interface CtaRowProps { title: string; description: string; children: React.ReactNode; className?: string; } const CtaRow = ({ title, description, className, children }: CtaRowProps) => { return ( <>

{title}

{description}

{children}

); }; const BillingView = () => { const { t } = useLocale(); const { open } = useIntercom(); const router = useRouter(); const returnTo = router.asPath; const billingHref = `/api/integrations/stripepayment/portal?returnTo=${WEBAPP_URL}${returnTo}`; const onContactSupportClick = async () => { await open(); }; return ( <>
); }; BillingView.getLayout = getLayout; BillingView.PageWrapper = PageWrapper; export default BillingView;