Files
LexiChain/app/(dashboard)/contacts/layout.tsx
2026-03-28 23:46:45 +01:00

23 lines
499 B
TypeScript

import { redirect } from "next/navigation";
import { auth } from "@clerk/nextjs/server";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "Contracts | LexiChain",
description: "Upload, manage, and analyze your financial contracts with LexiChain's AI.",
};
export default async function ContactsLayout({
children,
}: {
children: React.ReactNode;
}) {
const { userId } = await auth();
if (!userId) {
redirect("/sign-in");
}
return <>{children}</>;
}