@@ -12,7 +12,7 @@ import {
1212 TabPanel ,
1313 CheckboxControl ,
1414} from '@wordpress/components' ;
15- import { moreVertical , external , chevronLeft , edit } from '@wordpress/icons' ;
15+ import { moreVertical , chevronLeft , edit } from '@wordpress/icons' ;
1616import { SiteLogs } from '../../log-modal' ;
1717import { useAppDispatch , useAppSelector } from '../../../lib/state/redux/store' ;
1818import { usePlaygroundClientInfo } from '../../../lib/use-playground-client' ;
@@ -30,7 +30,6 @@ import {
3030 selectClientInfoBySiteSlug ,
3131 removeClientInfo ,
3232} from '../../../lib/state/redux/slice-clients' ;
33- import { encodeStringAsBase64 } from '../../../lib/base64' ;
3433import { ActiveSiteSettingsForm } from '../site-settings-form/active-site-settings-form' ;
3534import { getRelativeDate } from '../../../lib/get-relative-date' ;
3635import { setActiveModal } from '../../../lib/state/redux/slice-ui' ;
@@ -450,37 +449,6 @@ export function SiteInfoPanel({
450449 disabled = { ! playground }
451450 />
452451 </ MenuGroup >
453- < MenuGroup >
454- < MenuItem
455- onClick = { async ( ) => {
456- const reflection =
457- await BlueprintReflection . create (
458- site . metadata
459- . originalBlueprint as any
460- ) ;
461- const declaration =
462- reflection . getDeclaration ( ) as any ;
463- const encoded =
464- encodeStringAsBase64 (
465- JSON . stringify (
466- declaration
467- ) as string
468- ) ;
469- window . open (
470- `/builder/builder.html#${ encoded } ` ,
471- '_blank' ,
472- 'noopener,noreferrer'
473- ) ;
474- onClose ( ) ;
475- } }
476- icon = { external }
477- iconPosition = "right"
478- aria-label = "View Blueprint"
479- disabled = { offline }
480- >
481- View Blueprint
482- </ MenuItem >
483- </ MenuGroup >
484452 < MenuGroup >
485453 < ReportError
486454 onClose = { onClose }
0 commit comments