paper-ai-release-24-07-21/app/[lng]/layout.tsx
2024-02-12 20:55:14 +08:00

31 lines
804 B
TypeScript

import { GeistSans } from "geist/font/sans";
import "./globals.css";
import { GoogleAnalytics } from "@next/third-parties/google";
const defaultUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000";
export const metadata = {
metadataBase: new URL(defaultUrl),
title: "paper ai 使用真实文献让AI完成论文",
description: "写论文最高效的方式",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" className={GeistSans.className}>
<body className="bg-background text-foreground">
<main className="min-h-screen flex flex-col items-center">
{children}
</main>
</body>
<GoogleAnalytics gaId="G-05DHTG9XQ5" />
</html>
);
}