first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 21:52:23 +03:00
commit 880f412e2c
2662 changed files with 866266 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { createFileRoute, Outlet, redirect } from "@tanstack/react-router";
import { ClientLayout } from "../clientLayout";
function WorkspaceLayout({ children }: { children: React.ReactNode }) {
return <ClientLayout>{children}</ClientLayout>;
}
function RouteComponent() {
return (
<WorkspaceLayout>
<Outlet />
</WorkspaceLayout>
);
}
export const Route = createFileRoute("/workspace")({
beforeLoad: ({ location }) => {
if (location.pathname === "/workspace" || location.pathname === "/workspace/") {
throw redirect({ to: "/workspace/dashboard", replace: true });
}
},
component: RouteComponent,
});