blob: 5b06798ede30cb4e4ce34aa3000a19ef1ff1bc19 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import type { Metadata } from "next";
import { redirect } from "next/navigation";
import SubscriptionSettings from "@/components/settings/SubscriptionSettings";
import { QuotaProgress } from "@/components/subscription/QuotaProgress";
import { useTranslation } from "@/lib/i18n/server";
import serverConfig from "@karakeep/shared/config";
export async function generateMetadata(): Promise<Metadata> {
// oxlint-disable-next-line rules-of-hooks
const { t } = await useTranslation();
return {
title: `${t("settings.subscription.subscription")} | Karakeep`,
};
}
export default async function SubscriptionPage() {
if (!serverConfig.stripe.isConfigured) {
redirect("/settings");
}
return (
<div className="flex flex-col gap-4">
<SubscriptionSettings />
<QuotaProgress />
</div>
);
}
|