add: example for tanstack start

This commit is contained in:
2026-02-26 09:40:42 +05:30
parent 6288faef33
commit 01483b912f
29 changed files with 905 additions and 0 deletions
@@ -0,0 +1,23 @@
import { createFileRoute } from "@tanstack/react-router";
import { useAuth } from "bknd/client";
import "bknd/dist/styles.css";
import { Admin } from "bknd/ui";
export const Route = createFileRoute("/admin/$")({
ssr: false,
component: RouteComponent,
});
function RouteComponent() {
const { user } = useAuth();
return (
<Admin
withProvider={{ user: user }}
config={{
basepath: "/admin",
logo_return_path: "/../",
}}
baseUrl={import.meta.env.APP_URL}
/>
);
}