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

const CustomLink = ({
  href,
  title,
  children,
}) => {
  return (
    (<span className="link-container">
      <Link href={href} className="link" title={title}>

        {children}

      </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