1import type { ReactNode } from "react";
2import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router";
3import "./app.css";
4
5export function Layout({ children }: Readonly<{ children: ReactNode }>) {
6 return (
7 <html lang="en">
8 <head>
9 <meta charSet="utf-8" />
10 <meta name="viewport" content="width=device-width, initial-scale=1" />
11 <title>React Router on AWS</title>
12 <Meta />
13 <Links />
14 </head>
15 <body className="bg-slate-50 p-8 text-slate-900">
16 {children}
17 <ScrollRestoration />
18 <Scripts />
19 </body>
20 </html>
21 );
22}
23
24export default function Root() {
25 return <Outlet />;
26}