9 lines
309 B
TypeScript
9 lines
309 B
TypeScript
import { createNavigation } from 'next-intl/navigation';
|
|
import { routing } from './routing';
|
|
|
|
/**
|
|
* Type-safe locale-aware navigation helpers.
|
|
* Use these instead of the plain Next.js Link and useRouter.
|
|
*/
|
|
export const { Link, redirect, usePathname, useRouter, getPathname } = createNavigation(routing);
|