import { createNavigation } from 'next-intl/navigation';
import { routing } from './routing';

/**
 * The one locale-aware navigation surface. `Link`/`useRouter` add the active locale prefix
 * automatically and `usePathname` strips it, so chrome code compares/builds paths against the
 * unprefixed `ROUTES.*` constants directly — no manual `/${locale}` prefixing, and clicking a
 * `Link` never round-trips through the locale-detection middleware.
 */
export const { Link, usePathname, useRouter, redirect, getPathname } = createNavigation(routing);
