t3-code-android-nightly/.repos/alchemy-effect/examples/hetzner-website-react-router/app/root.tsx

26 lines
683 B
TypeScript

import type { ReactNode } from "react";
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router";
import "./app.css";
export function Layout({ children }: Readonly<{ children: ReactNode }>) {
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>React Router on Hetzner</title>
<Meta />
<Links />
</head>
<body className="bg-slate-50 p-8 text-slate-900">
{children}
<ScrollRestoration />
<Scripts />
</body>
</html>
);
}
export default function Root() {
return <Outlet />;
}