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.
14 lines
290 B
JavaScript
14 lines
290 B
JavaScript
'use client'
|
|
import Image from 'next/image'
|
|
import testPng from '../../images/test.png'
|
|
|
|
export default function ClientLayout({ children }) {
|
|
return (
|
|
<>
|
|
<h2>app-client-layout</h2>
|
|
<Image id="app-client-layout" src={testPng} quality={55} />
|
|
{children}
|
|
</>
|
|
)
|
|
}
|