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