mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-18 00:07:44 +02:00
34 lines
803 B
TypeScript
34 lines
803 B
TypeScript
// oxlint-disable-next-line import/no-unassigned-import
|
|
import "./styles.css";
|
|
import { Link, Outlet } from "react-router";
|
|
|
|
export function Layout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
<meta charSet="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>React Router Vite</title>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<nav>
|
|
<ul>
|
|
<li>
|
|
<Link to="/">Home</Link>
|
|
</li>
|
|
<li>
|
|
<Link to="/about">About</Link>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|
|
|
|
export default function Component() {
|
|
return <Outlet />;
|
|
}
|