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 = ({ data }) => [{ title: data?.title }]; interface Props { withFooter?: boolean; } export default function Page401({ withFooter = true }: Props) { return ; }