2026-07-14 09:54:36 +03:00
|
|
|
import { SpriteViewer } from '@gromlab/svg-sprites/react'
|
2026-07-16 09:14:11 +03:00
|
|
|
import { AppIcon } from '../src/app-icons'
|
|
|
|
|
import { RemoteAppIcon } from '../src/remote-app-icons'
|
2026-07-13 20:08:31 +03:00
|
|
|
|
2026-07-14 09:54:36 +03:00
|
|
|
const viewerSources = [
|
2026-07-16 09:14:11 +03:00
|
|
|
() => import('../src/app-icons/.svg-sprite/svg-sprite.manifest.js'),
|
|
|
|
|
() => import('../src/remote-app-icons/.svg-sprite/svg-sprite.manifest.js'),
|
2026-07-14 09:54:36 +03:00
|
|
|
] as const
|
|
|
|
|
|
2026-07-13 20:08:31 +03:00
|
|
|
export default function Page() {
|
|
|
|
|
return (
|
|
|
|
|
<main>
|
|
|
|
|
<h1>Next.js Pages Router + Webpack</h1>
|
2026-07-16 09:14:11 +03:00
|
|
|
<AppIcon
|
2026-07-13 20:08:31 +03:00
|
|
|
data-testid="icon"
|
|
|
|
|
data-app="next-pages-webpack"
|
|
|
|
|
icon="check"
|
|
|
|
|
aria-label="Check icon"
|
|
|
|
|
width={64}
|
|
|
|
|
height={64}
|
|
|
|
|
style={{ '--icon-color-1': '#16a34a' }}
|
|
|
|
|
/>
|
2026-07-16 09:14:11 +03:00
|
|
|
<RemoteAppIcon
|
|
|
|
|
data-testid="remote-icon"
|
|
|
|
|
data-app="next-pages-webpack-remote"
|
|
|
|
|
icon="check"
|
|
|
|
|
aria-label="Remote check icon"
|
|
|
|
|
width={64}
|
|
|
|
|
height={64}
|
|
|
|
|
style={{ '--icon-color-1': '#16a34a' }}
|
|
|
|
|
/>
|
2026-07-14 09:54:36 +03:00
|
|
|
<SpriteViewer sources={viewerSources} title="Next Pages Webpack Viewer" style={{ marginTop: 32 }} />
|
2026-07-13 20:08:31 +03:00
|
|
|
</main>
|
|
|
|
|
)
|
|
|
|
|
}
|