next.js/packages/next-codemod/transforms/__testfixtures__/next-image-to-legacy-image/general.output.tsx
general.output.tsx22 lines763 B
// @ts-nocheck
/* eslint-disable */
import Image from "next/legacy/image";
import Named from "next/legacy/image";
import type { ImageProps } from "next/legacy/image";
import { type ImageLoaderProps } from "next/legacy/image";
import Foo from "foo";
import Future1 from "next/image";
import Future2 from "next/image";
import type { ImageProps as ImageFutureProps } from "next/image";
import { type ImageLoaderProps as ImageFutureLoaderProps } from "next/image";

export default function Home() {
  return (<div>
    <h1>Both</h1>
    <Image src="/test.jpg" width="200" height="300" />
    <Named src="/test.png" width="500" height="400" />
    <Future1 src="/test.webp" width="60" height="70" />
    <Future2 src="/test.avif" width="80" height="90" />
  </div>)
}
Quest for Codev2.0.0
/
SIGN IN