next-intl
Version:
Internationalization (i18n) for Next.js
13 lines (12 loc) • 573 B
TypeScript
import NextLink from 'next/link';
import React, { ComponentProps } from 'react';
import { InitializedLocaleCookieConfig } from '../../routing/config';
import { LocalePrefixMode } from '../../routing/types';
type Props = Omit<ComponentProps<typeof NextLink>, 'locale'> & {
locale: string;
prefix: string;
localePrefixMode: LocalePrefixMode;
localeCookie: InitializedLocaleCookieConfig;
};
declare const LegacyBaseLinkWithRef: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
export default LegacyBaseLinkWithRef;