Rocky_Mountain_Vending/.pnpm-store/v10/files/c4/099a76874f021429d16e9a34f9bea7013e697b5926dcd9a1537fafa781ca459d6beb012565589c0c8ee98ff670fe2d00c3e791f9ca596d59b16c2119ecbcac
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

16 lines
No EOL
735 B
Text

import { useContext } from 'react';
import { RouterContext } from '../../shared/lib/router-context.shared-runtime';
/**
* useRouter from `next/compat/router` is designed to assist developers
* migrating from `pages/` to `app/`. Unlike `next/router`, this hook does not
* throw when the `NextRouter` is not mounted, and instead returns `null`. The
* more concrete return type here lets developers use this hook within
* components that could be shared between both `app/` and `pages/` and handle
* to the case where the router is not mounted.
*
* @returns The `NextRouter` instance if it's available, otherwise `null`.
*/ export function useRouter() {
return useContext(RouterContext);
}
//# sourceMappingURL=router.js.map