import Link from 'next/link'; export function CustomLink(props: any) { const target = props.target || (props.href.startsWith('http') ? '_blank' : undefined); return ( {props.children} ); }