The Open Framework for Building Agents
import { createRootRoute, HeadContent, Outlet, Scripts } from "@tanstack/react-router";
import type { ReactNode } from "react";
import { TooltipProvider } from "@/components/ui/tooltip";
import fontsCss from "../fonts.css?url";
import globalsCss from "../globals.css?url";
export const Route = createRootRoute({
head: () => ({
meta: [
{ charSet: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ title: "eve TanStack Start Starter" },
{ name: "description", content: "A TanStack Start starter for eve agents with AI Elements." },
],
links: [
{ rel: "stylesheet", href: globalsCss },
{ rel: "stylesheet", href: fontsCss },
{ rel: "icon", href: "/icon.svg", type: "image/svg+xml" },
],
}),
component: RootComponent,
});
function RootComponent() {
return (
<RootDocument>
<TooltipProvider>
<Outlet />
</TooltipProvider>
</RootDocument>
);
}
function RootDocument({ children }: { readonly children: ReactNode }) {
return (
<html lang="en">
<head>
<HeadContent />
</head>
<body>
{children}
<Scripts />
</body>
</html>
);
}