layout.tsx 831 B

123456789101112131415161718192021222324252627282930313233343536
  1. import type { Metadata } from "next";
  2. import { Geist, Geist_Mono } from "next/font/google";
  3. import "streamdown/styles.css";
  4. import "./globals.css";
  5. const geistSans = Geist({
  6. variable: "--font-geist-sans",
  7. subsets: ["latin"],
  8. });
  9. const geistMono = Geist_Mono({
  10. variable: "--font-geist-mono",
  11. subsets: ["latin"],
  12. });
  13. export const metadata: Metadata = {
  14. title: "json-render Harness Agent Example",
  15. description:
  16. "A coding agent harness (Claude Code) that reports its work as generative UI via json-render",
  17. };
  18. export default function RootLayout({
  19. children,
  20. }: {
  21. children: React.ReactNode;
  22. }) {
  23. return (
  24. <html lang="en" suppressHydrationWarning>
  25. <body
  26. className={`${geistSans.variable} ${geistMono.variable} font-sans antialiased`}
  27. >
  28. {children}
  29. </body>
  30. </html>
  31. );
  32. }