import { ExternalLinkIcon } from "@heroicons/react/solid"; import { useState } from "react"; import { ReactNode } from "react"; import { HelpScout, useChat } from "react-live-chat-loader"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import Button from "@calcom/ui/Button"; import useMeQuery from "@lib/hooks/useMeQuery"; import SettingsShell from "@components/SettingsShell"; type CardProps = { title: string; description: string; className?: string; children: ReactNode }; const Card = ({ title, description, className = "", children }: CardProps): JSX.Element => (

{title}

{description}

{children}
); export default function Billing() { const { t } = useLocale(); const query = useMeQuery(); const { data } = query; const [active, setActive] = useState(false); const [, loadChat] = useChat(); const handleClick = () => { setActive(true); loadChat({ open: true }); }; return ( <>
{data?.plan && ["FREE", "TRIAL"].includes(data.plan) && (
)}

{t("need_anything_else")}

{t("further_billing_help")}

{active && }
); }