Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/apps/web/app/routes/401.tsx
T

20 lines
651 B
TypeScript

import { LoaderFunctionArgs, MetaFunction } 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);
return {
title: `${t("shared.unauthorized")} | ${process.env.APP_NAME}`,
};
};
export const meta: MetaFunction<typeof loader> = ({ data }) => [{ title: data?.title }];
interface Props {
withFooter?: boolean;
}
export default function Page401({ withFooter = true }: Props) {
return <ErrorPage status={401} withFooter={withFooter} />;
}