Files
wr.do/app/(protected)/dashboard/urls/analytics/page.tsx
2025-10-30 17:11:49 +08:00

25 lines
541 B
TypeScript

import { redirect } from "next/navigation";
import { getCurrentUser } from "@/lib/session";
import { constructMetadata } from "@/lib/utils";
import { DashboardHeader } from "@/components/dashboard/header";
import Globe from "../globe";
export const metadata = constructMetadata({
title: "Globe Analytics",
description: "Display link's globe analytics.",
});
export default async function DashboardPage() {
const user = await getCurrentUser();
if (!user?.id) redirect("/login");
return (
<>
<Globe />
</>
);
}