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,22 @@
import { LoaderFunctionArgs, MetaFunction, useLoaderData } from "react-router";
import { ErrorPage } from "~/components/ui/errors/ErrorPage";
import { getTranslations } from "~/locale/i18next.server";
export const loader = async ({ request }: LoaderFunctionArgs) => {
const { t } = await getTranslations(request, "errors");
return Response.json({
title: `${t("forbidden")} | ${process.env.APP_NAME}`,
eyebrow: t("403.eyebrow"),
pageTitle: t("403.title"),
description: t("403.description"),
});
};
type Route403Data = { title: string; eyebrow: string; pageTitle: string; description: string };
export const meta: MetaFunction<typeof loader> = ({ data }) => [{ title: (data as Route403Data | undefined)?.title }];
export default function Route403() {
const data = useLoaderData() as Route403Data | undefined;
return <ErrorPage status={403} eyebrow={data?.eyebrow} title={data?.pageTitle} description={data?.description} />;
}