/* eslint-disable @next/next/no-page-custom-font */ import "./styles/globals.scss"; import "./styles/markdown.scss"; import "./styles/prism.scss"; import process from "child_process"; import { ACCESS_CODES } from "./api/access"; let COMMIT_ID: string | undefined; try { COMMIT_ID = process .execSync("git rev-parse --short HEAD") .toString() .trim(); } catch (e) { console.error("No git or not from git repo.") } export const metadata = { title: "ChatGPT Next Web", description: "Your personal ChatGPT Chat Bot.", appleWebApp: { title: "ChatGPT Next Web", statusBarStyle: "black-translucent", }, themeColor: "#fafafa" }; function Meta() { const metas = { version: COMMIT_ID ?? "unknown", access: ACCESS_CODES.size > 0 ? "enabled" : "disabled", }; return ( <> {Object.entries(metas).map(([k, v]) => ( ))} ); } export default function RootLayout({ children, }: { children: React.ReactNode; }) { return ( {children} ); }