buster/web/.storybook/mocks/next-navigation.ts

13 lines
301 B
TypeScript

// mocks/next-navigation.ts
export const useRouter = () => ({
push: () => {},
replace: () => {},
refresh: () => {},
back: () => {},
prefetch: () => {}
});
export const usePathname = () => '/';
export const useSearchParams = () => new URLSearchParams();
export const useParams = () => ({});