Files
wireguard-ui/src/pages/auth/logout/index.tsx
T

30 lines
910 B
TypeScript

import type { BunextPageModuleMeta } from "@moduletrace/bunext/types";
import Loading from "@/src/components/twui/elements/Loading";
import Row from "@/src/components/twui/layout/Row";
import Span from "@/src/components/twui/layout/Span";
import { useEffect } from "react";
import { SiteData } from "@/src/data/site-data";
import Stack from "@/src/components/twui/layout/Stack";
export default function LogoutPage() {
useEffect(() => {
setTimeout(() => {
window.location.pathname = "/";
}, 2000);
}, []);
return (
<Stack className="items-center">
<Row>
<Loading />
<Span>Logging out ...</Span>
</Row>
</Stack>
);
}
export const meta: BunextPageModuleMeta = {
title: `Logging Out | ${SiteData["SiteName"]}`,
description: `You are being logged out and redirected to the homepage.`,
};