@@ -24,6 +24,7 @@ import { GalleryImage } from '../components/GalleryImage';
2424import { HeaderAdSlot } from '../components/HeaderAdSlot' ;
2525import { Island } from '../components/Island' ;
2626import { LabsHeader } from '../components/LabsHeader' ;
27+ import { LabsPageHeader } from '../components/LabsPageHeader' ;
2728import { MainMediaGallery } from '../components/MainMediaGallery' ;
2829import { Masthead } from '../components/Masthead/Masthead' ;
2930import { MostViewedFooterData } from '../components/MostViewedFooterData.importable' ;
@@ -165,7 +166,8 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
165166 const showComments =
166167 frontendData . isCommentable && ! frontendData . config . isPaidContent ;
167168
168- const { absoluteServerTimes = false } = switches ;
169+ const { absoluteServerTimes = false , guardianLabsRedesign = false } =
170+ switches ;
169171
170172 return (
171173 < >
@@ -179,9 +181,11 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
179181 pageId = { frontendData . pageId }
180182 />
181183 ) : null }
184+
182185 < GalleryLabsHeader
183186 theme = { format . theme }
184187 editionId = { frontendData . editionId }
188+ showLabsRedesign = { guardianLabsRedesign }
185189 />
186190
187191 < main
@@ -512,19 +516,23 @@ const BannerAndMasthead = (props: {
512516const GalleryLabsHeader = ( props : {
513517 theme : ArticleTheme ;
514518 editionId : EditionId ;
519+ showLabsRedesign ?: boolean ;
515520} ) =>
516521 props . theme === ArticleSpecial . Labs ? (
517522 < Stuck >
518- < Section
519- fullWidth = { true }
520- showTopBorder = { false }
521- backgroundColour = { sourcePalette . labs [ 400 ] }
522- borderColour = { sourcePalette . neutral [ 60 ] }
523- sectionId = "labs-header"
524- element = "aside"
525- >
526- < LabsHeader editionId = { props . editionId } />
527- </ Section >
523+ { props . showLabsRedesign ? (
524+ < LabsPageHeader editionId = { props . editionId } />
525+ ) : (
526+ < Section
527+ fullWidth = { true }
528+ showTopBorder = { false }
529+ backgroundColour = { sourcePalette . labs [ 400 ] }
530+ borderColour = { sourcePalette . neutral [ 60 ] }
531+ sectionId = "labs-header"
532+ >
533+ < LabsHeader editionId = { props . editionId } />
534+ </ Section >
535+ ) }
528536 </ Stuck >
529537 ) : null ;
530538
0 commit comments