import { notFound } from 'next/navigation';

/**
 * Catch-all for any path under a locale segment that matches no other route (e.g. `/fa/xyz`). Next.js
 * only renders `not-found.tsx` automatically for a segment that exists; an arbitrary unmatched path needs
 * an actual route to land on before it can call `notFound()` — this is that route. See the next-intl
 * docs' recommended 404 pattern.
 */
export default function CatchAll(): never {
  notFound();
}
