1
0
Fork 0
This repository has been archived on 2023-12-03. You can view files and clone it, but cannot push or open issues or pull requests.
chellaris-galaxy-political-.../app/layout.tsx

26 lines
504 B
TypeScript

import './globals.css'
import { PageNavbar } from '@/components/navbar'
import * as fs from 'fs';
export const metadata = {
title: 'Stellaris Ethics Compass',
description: '',
}
export default async function RootLayout({
children,
}: {
children: React.ReactNode
}) {
const navLinks = JSON.parse(fs.readFileSync('public/routes_api.json', 'utf-8')).links;
return (
<html lang="en">
<body>
<PageNavbar links={navLinks}/>
{children}
</body>
</html>
)
}