nicklima/strapi-blog-frontend-next

View on GitHub
components/Links/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
import Link from "next/link"
import { ILinks } from "./interface"

const Links = ({ to, target = "_self", children, alt }: ILinks) => {
  return (
    <Link href={to}>
      <a target={target} alt={alt} aria-label={alt}>
        {children}
      </a>
    </Link>
  )
}

export default Links