mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-10 20:31:16 +02:00
26 lines
683 B
TypeScript
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 />;
|
|
}
|