@@ -13,7 +13,8 @@ import {
1313 ThemeProvider
1414} from '@ui5/webcomponents-react' ;
1515import { clsx } from 'clsx' ;
16- import { ReactNode , useRef , useState } from 'react' ;
16+ import type { ReactNode } from 'react' ;
17+ import { useRef , useState } from 'react' ;
1718import { addCustomCSSWithScoping } from '../../packages/main/src/internal/addCustomCSSWithScoping' ;
1819import classes from './ProjectTemplate.module.css' ;
1920
@@ -84,9 +85,9 @@ export function ProjectTemplate(props: ProjectTemplatePropTypes) {
8485 } }
8586 >
8687 < Text >
87- Currently, the < code > BarcodeScannerDialog</ code > web component isn' t compatible with SSR environments.
88- For the Next.js Pages Router and Remix, this bug crashes the entire build process, even if the component
89- isn' t imported.
88+ Currently, the < code > BarcodeScannerDialog</ code > web component isn' t compatible with SSR
89+ environments. For the Next.js Pages Router and Remix, this bug crashes the entire build process, even if
90+ the component isn' t imported.
9091 < br />
9192 This is < b > not</ b > the case for the Next.js App Router; there, the build only crashes if the component
9293 is used.
@@ -129,19 +130,16 @@ export function ProjectTemplate(props: ProjectTemplatePropTypes) {
129130 >
130131 < div className = { classes . cardContent } >
131132 { deprecationNotice && (
132- < MessageStrip
133- hideCloseButton
134- design = { MessageStripDesign . Critical }
135- children = { deprecationNotice }
136- className = { classes . deprecationNotice }
137- />
133+ < MessageStrip hideCloseButton design = { MessageStripDesign . Critical } className = { classes . deprecationNotice } >
134+ { deprecationNotice }
135+ </ MessageStrip >
138136 ) }
139137 < Link design = { LinkDesign . Emphasized } href = { href } >
140- View Example
138+ View{ isTemplate ? ' Template' : ' Example' }
141139 </ Link >
142140 { stackBlitzHref && (
143141 < >
144- |
142+ < span className = { classes . verticalLine } > | </ span >
145143 < Link design = { LinkDesign . Emphasized } href = { stackBlitzHref } >
146144 View in StackBlitz
147145 </ Link >
0 commit comments