// `react-router-dom`, from core. // // The sharpest of the four, because router state is not just a library — it is // one live navigation context. A module with its own copy would get a router // whose `useParams` returns nothing and whose `` navigates the browser // instead of the SPA, on a page that otherwise renders perfectly. import { rg } from './rg.js' const router = rg().router export default router.default ?? router export const { BrowserRouter, Link, NavLink, Navigate, Outlet, Route, Routes, createSearchParams, generatePath, matchPath, useLocation, useMatch, useNavigate, useOutletContext, useParams, useResolvedPath, useSearchParams, } = router