import { useSuspenseQuery } from "@tanstack/react-query";
import { createFileRoute } from "@tanstack/react-router";
import { getScanUsers } from "../../lib/queries/getScanUsers";

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

const ScanUserTable = () => {
	const { data } = useSuspenseQuery(getScanUsers());
	console.log(data);
	return <div>Hello "/admin/scanUsers"!</div>;
};
function RouteComponent() {
	return <ScanUserTable />;
}
