Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,17 @@
import { Link, useParams } from "react-router";
import { useTranslation } from "react-i18next";
import { subscriptionRequiredCheckoutPath } from "~/utils/app/SubscriptionUrlUtils";
export default function ProFeature() {
const { t } = useTranslation();
const params = useParams();
const to = params.tenant ? subscriptionRequiredCheckoutPath(params.tenant) : "/login";
return (
<div className="border-border-default bg-surface-neutral-primary text-text-neutral-primary rounded-md border-2 border-dashed py-6 text-center font-medium">
<Link to={to} className="underline">
{t("shared.planRequired")}
</Link>
</div>
);
}
@@ -0,0 +1,20 @@
import { useTranslation } from "react-i18next";
import ProFeature from "./ProFeature";
export default function UnderConstruction({ title, description, proFeature }: { title?: string; description?: string; proFeature?: boolean }) {
const { t } = useTranslation();
return (
<div className="space-y-3">
{title && (
<div className="text-text-neutral-primary text-lg font-extrabold">
<span>{title}</span>
</div>
)}
{description && <div className="text-text-neutral-tertiary text-sm">{description}</div>}
{proFeature && <ProFeature />}
<div className="flex flex-col justify-center space-y-4 rounded-md border-2 border-dashed border-yellow-300 bg-yellow-50 py-6 text-center font-medium dark:bg-yellow-100 dark:text-yellow-800">
<div>{t("shared.underConstruction")} 🚧</div>
</div>
</div>
);
}