import { createFileRoute, Link } from "@tanstack/react-router";

export const Route = createFileRoute("/_adminLayout/admin/servers")({
    component: RouteComponent,
});

function RouteComponent() {
    return (
        <div>
            Hello "/admin/servers"! <br />
            <Link
                to="/admin/servers/$serverId"
                params={{
                    serverId: "5",
                }}
            >
                Server 5
            </Link>
            <Link
                to="/admin/servers/$serverId"
                params={(prev) => ({ ...prev, serverId: "10" })}
            >
                Server 5
            </Link>
        </div>
    );
}
