1- import { AnchorHTMLAttributes , forwardRef } from 'react '
2- import NextLink , { LinkProps } from 'next/link '
1+ import NextLink , { type LinkProps } from 'next/link '
2+ import { type AnchorHTMLAttributes , forwardRef } from 'react '
33import { twMerge } from 'tailwind-merge'
4- import { LinkType } from '../../types/index'
4+ import type { LinkType } from '../../types/index'
55
66export type BaseLinkProps = {
77 /** What kind of content is it */
@@ -18,7 +18,7 @@ export type BaseLinkProps = {
1818 * And the strict origin policy when external for using blank
1919 */
2020export const BaseLink = forwardRef < HTMLAnchorElement , BaseLinkProps > ( function BaseLink (
21- { children, type = 'internalUrl' , className = '' , href = '' , skipInternalStyle = false } ,
21+ { children, type = 'internalUrl' , className = '' , href = '' , skipInternalStyle = false , locale } ,
2222 ref ,
2323) {
2424 const classNames = skipInternalStyle
@@ -65,7 +65,7 @@ export const BaseLink = forwardRef<HTMLAnchorElement, BaseLinkProps>(function Ba
6565
6666 default :
6767 return (
68- < NextLink ref = { ref } href = { href } prefetch = { false } className = { classNames } >
68+ < NextLink ref = { ref } href = { href } locale = { locale } prefetch = { false } className = { classNames } >
6969 { children }
7070 </ NextLink >
7171 )
0 commit comments