mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This PR is similar to PR #46460, but applies the patch to all our codemods.
22 lines
763 B
TypeScript
22 lines
763 B
TypeScript
// @ts-nocheck
|
|
/* eslint-disable */
|
|
import Image from "next/image";
|
|
import Named from "next/image";
|
|
import type { ImageProps } from "next/image";
|
|
import { type ImageLoaderProps } from "next/image";
|
|
import Foo from "foo";
|
|
import Future1 from "next/future/image";
|
|
import Future2 from "next/future/image";
|
|
import type { ImageProps as ImageFutureProps } from "next/future/image";
|
|
import { type ImageLoaderProps as ImageFutureLoaderProps } from "next/future/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>)
|
|
}
|