bb-plane-fork/web/core/hooks/use-app-router.tsx
Prateek Shourya 626464513d
chore: add custom n-progress component to fix unwanted n-progress trigger issues. (#4965)
* chore: add n-progress lib.

* chore: prevent unwanted n-progress from projects and notifications.

* fix: lint errors.
2024-06-28 20:39:19 +05:30

6 lines
247 B
TypeScript

// type
import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime";
// router from next-nprogress-bar
import { useRouter } from "@/lib/n-progress";
export const useAppRouter = (): AppRouterInstance => useRouter();