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>
)