mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This PR adds a test fixture `e2e/app-dir/next-image` to ensure `next/image` works with the `app` dir.
13 lines
266 B
JavaScript
13 lines
266 B
JavaScript
import Image from 'next/image'
|
|
import testJpg from './test.jpg'
|
|
|
|
export default function NestedLayout({ children }) {
|
|
return (
|
|
<>
|
|
<h2>app-nested-layout</h2>
|
|
<Image id="app-nested-layout" src={testJpg} quality={70} />
|
|
{children}
|
|
</>
|
|
)
|
|
}
|