Files

29 lines
736 B
TypeScript
Raw Permalink Normal View History

2026-03-25 13:52:45 +01:00
import { auth } from "@clerk/nextjs/server";
import { redirect } from "next/navigation";
2026-03-28 23:46:45 +01:00
import { DashboardNavigation } from "@/components/layout/navigation";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "Dashboard | LexiChain Contract Intelligence",
description: "View and manage your AI-processed financial contracts, analytics, and metrics in real time.",
};
2026-03-25 13:52:45 +01:00
export default async function DashboardLayout({
children,
}: {
children: React.ReactNode;
}) {
const { userId } = await auth();
if (!userId) {
redirect("/sign-in");
}
return (
<div className="min-h-screen bg-background">
<DashboardNavigation />
<div className="ml-72">{children}</div>
</div>
);
}