Skip to content
Source
Sign inSign up
samwillis/hackernews-realtime
Open History to see the last commit

layout.tsx

23 lines600 Bytes

1import type { Metadata } from "next";
2import "./globals.css";
3import { LiveProvider } from "./live-session";
4export const metadata: Metadata = {
5 title: "Hacker Realtime",
6 description: "Hacker News, live. Powered by Neon Realtime.",
7};
8export default function Layout({ children }: { children: React.ReactNode }) {
9 return (
10 <html lang="en">
11 <body>
12 <LiveProvider
13 fixture={
14 process.env.HN_FIXTURE === "1" &&
15 process.env.NODE_ENV !== "production"
16 }
17 >
18 {children}
19 </LiveProvider>
20 </body>
21 </html>
22 );