import { createRootRoute, Link, Outlet } from "@tanstack/react-router";
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";

const RootLayout = () => (
    <>
        <nav className="flex gap-1">
            <Link to="/">Home</Link>
            {/* <Link to="/admin">Admin</Link> */}
        </nav>
        <hr></hr>
        <Outlet />
        <TanStackRouterDevtools />
    </>
);

export const Route = createRootRoute({ component: RootLayout });
