import { createRouter } from "@tanstack/react-router"

import { routeTree } from "./route-tree.gen"

export function getRouter() {
  return createRouter({
    routeTree,
    defaultPreload: "intent",
    scrollRestoration: true,
  })
}
