LinkWithArrow.tsx 414 B

123456789101112131415161718192021
  1. import Link from "next/link"
  2. import Arrow from "../public/ui/arrow-right.svg?inline"
  3. const LinkWithArrow = ({
  4. href,
  5. children,
  6. }: {
  7. href: string
  8. children: React.ReactNode
  9. }) => (
  10. <Link
  11. href={href}
  12. className="inline-flex items-center gap-1 font-semibold text-blurple-600 hocus:underline"
  13. >
  14. {children}
  15. <Arrow className="h-[1em] flex-shrink-0" />
  16. </Link>
  17. )
  18. export default LinkWithArrow