Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/apps/web/app/components/pages/PagePlanRequired.tsx
T

36 lines
1023 B
TypeScript

import { Link } from "react-router";
import { useTranslation } from "react-i18next";
import { ErrorPage } from "~/components/ui/errors/ErrorPage";
export interface PagePlanRequiredProps {
tenantSlug?: string;
subscriptionPath?: string;
}
export default function PagePlanRequired({ tenantSlug, subscriptionPath }: PagePlanRequiredProps) {
const { t } = useTranslation();
return (
<ErrorPage
status={403}
eyebrow={t("access.planRequired.eyebrow")}
title={t("access.planRequired.title")}
description={
tenantSlug
? t("access.planRequired.namedDescription", {
tenant: tenantSlug,
})
: t("access.planRequired.description")
}
withGoBack={false}
actionSlot={
subscriptionPath ? (
<Link to={subscriptionPath} className="text-primary hover:text-primary/90 text-sm font-medium underline">
{t("access.planRequired.manageSubscription")}
</Link>
) : null
}
/>
);
}