Files
Epicnabbo-Catalogus-Updated…/e2e/ui/fixtures/navigation.ts
T

14 lines
346 B
TypeScript

const router = {
push: (url: string) => {
window.location.href = url;
},
replace: (url: string) => {
window.location.replace(url);
},
refresh: () => {},
};
export const useRouter = () => router;
export const usePathname = () => window.location.pathname;
export const useSearchParams = () =>
new URLSearchParams(window.location.search);