next.js/test/e2e/app-dir/instant-validation/components/debug-link.tsx
debug-link.tsx27 lines451 B
'use client'

import Link from 'next/link'
import { ComponentProps } from 'react'

export function DebugLink({
  href,
  ...props
}: Omit<ComponentProps<typeof Link>, 'children' | 'href'> & { href: string }) {
  return (
    <Link href={href} {...props}>
      {href}
    </Link>
  )
}

export function DebugLinkMPA({
  href,
  ...props
}: Omit<ComponentProps<'a'>, 'children'>) {
  return (
    <a href={href} {...props}>
      {href}
    </a>
  )
}
Quest for Codev2.0.0
/
SIGN IN