next.js/packages/next-codemod/transforms/__testfixtures__/new-link/styled-jsx.input.js
styled-jsx.input.js26 lines468 B
import Link from 'next/link';

const CustomLink = ({
  href,
  title,
  children,
}) => {
  return (
    <span className="link-container">
      <Link href={href}>
        <a className="link" title={title}>
          {children}
        </a>
      </Link>
      <style jsx>{`
        .link {
          text-decoration: none;
          color: var(--geist-foreground);
          font-weight: 500;
        }
      `}</style>
    </span>
  );
};

export default CustomLink;
Quest for Codev2.0.0
/
SIGN IN