'use client'; import NextLink, { LinkProps as NextLinkProps } from 'next/link'; import { CSSProperties, ComponentProps, PropsWithChildren, useMemo, } from 'react'; export type NavLinkProps = NextLinkProps & PropsWithChildren & { styles?: CSSProperties; borderRadius?: ComponentProps['style']; }; function NavLink({ children, styles, ...props }: NavLinkProps) { const memoizedStyles = useMemo( () => ({ ...styles, }), [styles], ); return ( {children} ); } export default NavLink;