23 lines
499 B
TypeScript
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}</>;
|
|
}
|