/* 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"; const COMMIT_ID = process .execSync("git rev-parse --short HEAD") .toString() .trim(); export const metadata = { title: "ChatGPT Next Web", description: "Your personal ChatGPT Chat Bot.", }; function Meta() { const metas = { version: COMMIT_ID, access: ACCESS_CODES.size > 0 ? "enabled" : "disabled", }; return ( <> {Object.entries(metas).map(([k, v]) => ( ))} ); } export default function RootLayout({ children, }: { children: React.ReactNode; }) { return ( {children} ); }