2021-09-28 10:27:46 +00:00
|
|
|
import { ExternalLinkIcon } from "@heroicons/react/solid";
|
2021-09-27 22:57:23 +00:00
|
|
|
|
2021-10-13 09:34:55 +00:00
|
|
|
import { useLocale } from "@lib/hooks/useLocale";
|
2021-09-22 19:52:38 +00:00
|
|
|
|
2021-09-29 21:33:18 +00:00
|
|
|
import SettingsShell from "@components/SettingsShell";
|
2021-09-22 19:52:38 +00:00
|
|
|
import Shell from "@components/Shell";
|
2021-09-27 22:57:23 +00:00
|
|
|
import Button from "@components/ui/Button";
|
2021-06-16 12:44:25 +00:00
|
|
|
|
2021-08-02 17:29:34 +00:00
|
|
|
export default function Billing() {
|
2021-10-13 09:34:55 +00:00
|
|
|
const { t } = useLocale();
|
|
|
|
|
2021-06-16 12:44:25 +00:00
|
|
|
return (
|
2021-10-13 09:34:55 +00:00
|
|
|
<Shell heading={t("billing")} subtitle={t("manage_your_billing_info")}>
|
2021-06-16 12:44:25 +00:00
|
|
|
<SettingsShell>
|
2021-07-30 23:05:38 +00:00
|
|
|
<div className="py-6 lg:pb-8 lg:col-span-9">
|
2021-11-28 11:18:15 +00:00
|
|
|
<div className="bg-white border sm:rounded-sm dark:bg-gray-700 dark:border-gray-500">
|
2021-09-28 10:27:46 +00:00
|
|
|
<div className="px-4 py-5 sm:p-6">
|
2021-11-28 11:18:15 +00:00
|
|
|
<h3 className="text-lg font-medium leading-6 text-gray-900 dark:text-white">
|
2021-10-13 09:34:55 +00:00
|
|
|
{t("view_and_manage_billing_details")}
|
2021-09-28 10:27:46 +00:00
|
|
|
</h3>
|
2021-11-28 11:18:15 +00:00
|
|
|
<div className="max-w-xl mt-2 text-sm text-gray-500">
|
2021-10-13 09:34:55 +00:00
|
|
|
<p>{t("view_and_edit_billing_details")}</p>
|
2021-09-28 10:27:46 +00:00
|
|
|
</div>
|
|
|
|
<div className="mt-5">
|
|
|
|
<form
|
|
|
|
method="POST"
|
|
|
|
action={`${process.env.NEXT_PUBLIC_BASE_URL}/api/integrations/stripepayment/portal`}>
|
|
|
|
<Button type="submit">
|
2021-11-28 11:18:15 +00:00
|
|
|
{t("go_to_billing_portal")} <ExternalLinkIcon className="w-4 h-4 ml-1" />
|
2021-09-28 10:27:46 +00:00
|
|
|
</Button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-28 11:18:15 +00:00
|
|
|
<div className="mt-4 border bg-gray-50 sm:rounded-sm dark:bg-gray-700 dark:border-gray-500">
|
2021-09-28 10:27:46 +00:00
|
|
|
<div className="px-4 py-5 sm:p-6">
|
2021-11-28 11:18:15 +00:00
|
|
|
<h3 className="text-lg font-medium leading-6 text-gray-900 dark:text-white">
|
|
|
|
{t("need_anything_else")}
|
|
|
|
</h3>
|
|
|
|
<div className="max-w-xl mt-2 text-sm text-gray-500">
|
2021-10-13 09:34:55 +00:00
|
|
|
<p>{t("further_billing_help")}</p>
|
2021-09-28 10:27:46 +00:00
|
|
|
</div>
|
|
|
|
<div className="mt-5">
|
2021-09-28 14:07:33 +00:00
|
|
|
<Button href="mailto:help@cal.com" color="secondary" type="submit">
|
2021-10-13 09:34:55 +00:00
|
|
|
{t("contact_our_support_team")}
|
2021-09-28 14:07:33 +00:00
|
|
|
</Button>
|
2021-09-28 10:27:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-16 12:44:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</SettingsShell>
|
|
|
|
</Shell>
|
|
|
|
);
|
|
|
|
}
|