forked from mongodb/docs-sample-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
54 lines (52 loc) · 1.35 KB
/
layout.tsx
File metadata and controls
54 lines (52 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import Link from 'next/link';
import type { Metadata } from 'next';
import "./globals.css";
import styles from './layout.module.css';
import { ROUTES, APP_CONFIG } from './lib/constants';
export const metadata: Metadata = {
title: 'Sample MFlix - MongoDB Movie Database',
description: 'Explore movies from the MongoDB sample_mflix database',
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body>
<nav className={styles.navigation}>
<div className={styles.navContainer}>
<Link
href={ROUTES.home}
className={styles.logo}
>
{APP_CONFIG.name}
</Link>
<div className={styles.navLinks}>
<Link
href={ROUTES.home}
className={styles.navLink}
>
Home
</Link>
<Link
href={ROUTES.movies}
className={styles.navLink}
>
Movies
</Link>
<Link
href={ROUTES.aggregations}
className={styles.navLink}
>
Aggregations
</Link>
</div>
</div>
</nav>
{children}
</body>
</html>
);
}